]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-14091-2.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 }