3141177995
The output of these tests is too complicated to comfortably verify by hand, but we can still use them to observe changes to the underlying mappings produced by codegen/LLVM. If these tests fail due to non-coverage changes (e.g. in HIR-to-MIR lowering or MIR optimizations), it should usually be OK to just `--bless` them, as long as the `run-coverage` test suite still works.
15 lines
298 B
Rust
15 lines
298 B
Rust
// 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);
|
|
}
|