rust/src/test/run-pass/try-is-identifier-edition2015.rs
2018-12-25 21:08:33 -07:00

10 lines
186 B
Rust

#![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);
}