rust/tests/ui/parser/issues/issue-88583-union-as-ident.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
171 B
Rust
Raw Normal View History

2021-09-09 08:31:56 -05:00
// check-pass
#![allow(non_camel_case_types)]
struct union;
impl union {
pub fn new() -> Self {
union { }
}
}
fn main() {
let _u = union::new();
}