]> git.proxmox.com Git - rustc.git/blob - tests/run-make/coverage/issue-83601.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }