Skip to content

Commit 35370a7

Browse files
committed
regression test for issue rust-lang#88583.
1 parent f26f1ed commit 35370a7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)