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