]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-14091-2.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / issues / issue-14091-2.rs
1 //
2
3 // Very
4
5 // sensitive
6 pub struct BytePos(pub u32);
7
8 // to particular
9
10 // line numberings / offsets
11
12 fn main() {
13     let x = BytePos(1);
14
15     assert!(x, x);
16     //~^ ERROR cannot apply unary operator `!` to type `BytePos`
17 }