]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-14091-2.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / 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 }