test: Add compile-fail test for shadowing in-scope enums

This commit is contained in:
Brian Anderson 2012-04-11 21:28:25 -07:00
parent e7409859ce
commit db7a1f7b0c

View file

@ -0,0 +1,5 @@
enum hello = int;
fn main() {
let hello = 0; //!ERROR declaration of `hello` shadows an enum that's in
}