rust/tests/ui/parser/issues/issue-88583-union-as-ident.rs
2024-02-16 20:02:50 +00:00

16 lines
172 B
Rust

//@ check-pass
#![allow(non_camel_case_types)]
struct union;
impl union {
pub fn new() -> Self {
union { }
}
}
fn main() {
let _u = union::new();
}