mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
16 lines
171 B
Rust
16 lines
171 B
Rust
|
// check-pass
|
||
|
|
||
|
#![allow(non_camel_case_types)]
|
||
|
|
||
|
struct union;
|
||
|
|
||
|
impl union {
|
||
|
pub fn new() -> Self {
|
||
|
union { }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let _u = union::new();
|
||
|
}
|