Skip to content

Commit a063982

Browse files
committed
Add test for issue 2467
1 parent a350bea commit a063982

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/compile-fail/issue-2467.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
enum test { thing = 3u } //! ERROR mismatched types
2+
//!^ ERROR expected signed integer constant
3+
fn main() {
4+
log(error, thing as int);
5+
assert(thing as int == 3);
6+
}

0 commit comments

Comments
 (0)