diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-14091-2.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-14091-2.rs b/src/test/ui/issues/issue-14091-2.rs new file mode 100644 index 000000000..e2f6b1833 --- /dev/null +++ b/src/test/ui/issues/issue-14091-2.rs @@ -0,0 +1,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` +} |