Skip to content

Commit

Permalink
regression test for issue rust-lang#88583.
Browse files Browse the repository at this point in the history
(cherry picked from commit 35370a7)
  • Loading branch information
pnkfelix authored and cuviper committed Sep 16, 2021
1 parent 73c80cd commit 533b5f7
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
Original file line number Diff line number Diff line change
@@ -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 533b5f7

Please sign in to comment.