2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-01-21 12:42:06 -06:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|