summaryrefslogtreecommitdiffstats
path: root/tests/coverage-map/status-quo/issue-83601.rs
blob: 0b72a81947cc79f563579142b62e486cb654f964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Shows that rust-lang/rust/83601 is resolved

#[derive(Debug, PartialEq, Eq)]
struct Foo(u32);

fn main() {
    let bar = Foo(1);
    assert_eq!(bar, Foo(1));
    let baz = Foo(0);
    assert_ne!(baz, Foo(1));
    println!("{:?}", Foo(1));
    println!("{:?}", bar);
    println!("{:?}", baz);
}