]> git.lizzy.rs Git - rust.git/blob - tests/run-make/coverage/issue-83601.rs
Auto merge of #103761 - chenyukang:yukang/fix-103320-must-use, r=compiler-errors
[rust.git] / tests / run-make / coverage / issue-83601.rs
1 // Shows that rust-lang/rust/83601 is resolved
2
3 #[derive(Debug, PartialEq, Eq)]
4 struct Foo(u32);
5
6 fn main() {
7     let bar = Foo(1);
8     assert_eq!(bar, Foo(1));
9     let baz = Foo(0);
10     assert_ne!(baz, Foo(1));
11     println!("{:?}", Foo(1));
12     println!("{:?}", bar);
13     println!("{:?}", baz);
14 }