Skip to content

Commit db7a1f7

Browse files
committed
test: Add compile-fail test for shadowing in-scope enums
1 parent e740985 commit db7a1f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
enum hello = int;
2+
3+
fn main() {
4+
let hello = 0; //!ERROR declaration of `hello` shadows an enum that's in
5+
}

0 commit comments

Comments
 (0)