]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-88583-union-as-ident.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / issues / issue-88583-union-as-ident.rs
1 // check-pass
2
3 #![allow(non_camel_case_types)]
4
5 struct union;
6
7 impl union {
8     pub fn new() -> Self {
9         union { }
10     }
11 }
12
13 fn main() {
14     let _u = union::new();
15 }