12 lines
394 B
Rust
12 lines
394 B
Rust
// TODO: this is an example of an orphan rule violation.
|
|
// We're implementing a foreign trait (`PartialEq`, from `std`) on
|
|
// a foreign type (`u32`, from `std`).
|
|
// Look at the compiler error to get familiar with what it looks like.
|
|
// Then delete the code below and move on to the next exercise.
|
|
|
|
impl PartialEq for u32 {
|
|
fn eq(&self, _other: &Self) -> bool {
|
|
todo!()
|
|
}
|
|
}
|