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

#![allow(non_camel_case_types)]
//@ edition: 2015

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