mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
227 B
Rust
17 lines
227 B
Rust
//
|
|
|
|
// 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`
|
|
}
|