2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
2018-07-21 19:34:45 -07:00
|
|
|
//@ compile-flags: --edition 2015
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let try = 2;
|
2020-11-25 17:00:28 -05:00
|
|
|
struct try { try: u32 }
|
2018-07-21 19:34:45 -07:00
|
|
|
let try: try = try { try };
|
|
|
|
assert_eq!(try.try, 2);
|
|
|
|
}
|