]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-88583-union-as-ident.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / 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 }