mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
200 B
Rust
11 lines
200 B
Rust
//@ 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);
|
|
}
|