rust/tests/ui/issues/issue-14091-2.rs
2023-01-11 09:32:08 +00:00

18 lines
227 B
Rust

//
// Very
// sensitive
pub struct BytePos(pub u32);
// to particular
// line numberings / offsets
fn main() {
let x = BytePos(1);
assert!(x, x);
//~^ ERROR cannot apply unary operator `!` to type `BytePos`
}