Skip to content

Commit

Permalink
regression test for issue #88583.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Sep 9, 2021
1 parent f26f1ed commit 35370a7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/parser/issue-88583-union-as-ident.rs
@@ -0,0 +1,15 @@
// check-pass

#![allow(non_camel_case_types)]

struct union;

impl union {
pub fn new() -> Self {
union { }
}
}

fn main() {
let _u = union::new();
}

0 comments on commit 35370a7

Please sign in to comment.