2018-07-15 16:11:54 -05:00
|
|
|
//
|
2014-11-20 14:24:39 -06:00
|
|
|
|
|
|
|
// Very
|
|
|
|
|
|
|
|
// sensitive
|
|
|
|
pub struct BytePos(pub u32);
|
|
|
|
|
|
|
|
// to particular
|
|
|
|
|
|
|
|
// line numberings / offsets
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = BytePos(1);
|
|
|
|
|
|
|
|
assert!(x, x);
|
2018-07-15 16:11:54 -05:00
|
|
|
//~^ ERROR cannot apply unary operator `!` to type `BytePos`
|
2014-11-20 14:24:39 -06:00
|
|
|
}
|