fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
528 B16 linesraw
1   LL|       |// Shows that rust-lang/rust/83601 is resolved
2   LL|       |
3   LL|      3|#[derive(Debug, PartialEq, Eq)]
4                              ^2
5   LL|       |struct Foo(u32);
6   LL|       |
7   LL|      1|fn main() {
8   LL|      1|    let bar = Foo(1);
9   LL|      1|    assert_eq!(bar, Foo(1));
10   LL|      1|    let baz = Foo(0);
11   LL|      1|    assert_ne!(baz, Foo(1));
12   LL|      1|    println!("{:?}", Foo(1));
13   LL|      1|    println!("{:?}", bar);
14   LL|      1|    println!("{:?}", baz);
15   LL|      1|}
16