rust/tests/ui/try-block/try-is-identifier-edition2015.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
198 B
Rust
Raw Normal View History

// 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);
}