mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
17 lines
253 B
Rust
17 lines
253 B
Rust
//@ check-pass
|
|
|
|
// This test checks that the `remove extra angle brackets` error doesn't happen for some
|
|
// potential edge-cases..
|
|
|
|
struct X {
|
|
len: u32,
|
|
}
|
|
|
|
fn main() {
|
|
let x = X { len: 3 };
|
|
|
|
let _ = x.len > (3);
|
|
|
|
let _ = x.len >> (3);
|
|
}
|