Add test for issue 2467
This commit is contained in:
parent
a350bea313
commit
a06398214a
1 changed files with 6 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue