about summary refs log tree commit diff
path: root/src/test/ui/try-is-identifier-edition2015.rs
blob: dfb05599be6bac67cb6197d51a94bffd9dd69aff (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![allow(non_camel_case_types)]
// compile-flags: --edition 2015

fn main() {
    let try = 2;
    struct try { try: u32 };
    let try: try = try { try };
    assert_eq!(try.try, 2);
}