rust/tests/ui/issues/issue-14091-2.rs

18 lines
227 B
Rust
Raw Normal View History

2018-07-15 21:11:54 +00:00
//
// Very
// sensitive
pub struct BytePos(pub u32);
// to particular
// line numberings / offsets
fn main() {
let x = BytePos(1);
assert!(x, x);
2018-07-15 21:11:54 +00:00
//~^ ERROR cannot apply unary operator `!` to type `BytePos`
}