Add test for issue 2467
This commit is contained in:
parent
a350bea313
commit
a06398214a
6
src/test/compile-fail/issue-2467.rs
Normal file
6
src/test/compile-fail/issue-2467.rs
Normal file
@ -0,0 +1,6 @@
|
||||
enum test { thing = 3u } //! ERROR mismatched types
|
||||
//!^ ERROR expected signed integer constant
|
||||
fn main() {
|
||||
log(error, thing as int);
|
||||
assert(thing as int == 3);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user