summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-54521-1.rs
blob: 8a682ef0a11620ef9d6e535a8cfd700ceb861602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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);
}