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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
227 B
Rust
Raw Normal View History

2018-07-15 16:11:54 -05: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 16:11:54 -05:00
//~^ ERROR cannot apply unary operator `!` to type `BytePos`
}