summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-14091-2.rs
blob: e2f6b18337266ce64ef55a868084971696590d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//

// Very

// sensitive
pub struct BytePos(pub u32);

// to particular

// line numberings / offsets

fn main() {
    let x = BytePos(1);

    assert!(x, x);
    //~^ ERROR cannot apply unary operator `!` to type `BytePos`
}