Add test for issue 2467

This commit is contained in:
Tim Chevalier 2012-06-21 16:58:04 -07:00
parent a350bea313
commit a06398214a

View 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);
}