summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2005-default-binding-mode/range.rs
blob: f8abd1b96d80e85ff959146c4f895107b28bae3b (plain)
1
2
3
4
5
6
7
8
9
// run-pass
pub fn main() {
    let i = 5;
    match &&&&i {
        1 ..= 3 => panic!(),
        4 ..= 8 => {},
        _ => panic!(),
    }
}