diff options
Diffstat (limited to 'src/test/ui/generics/generic-tag-match.rs')
-rw-r--r-- | src/test/ui/generics/generic-tag-match.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/generics/generic-tag-match.rs b/src/test/ui/generics/generic-tag-match.rs deleted file mode 100644 index 09ed6a808..000000000 --- a/src/test/ui/generics/generic-tag-match.rs +++ /dev/null @@ -1,13 +0,0 @@ -// run-pass -#![allow(unused_assignments)] -#![allow(non_camel_case_types)] - -enum foo<T> { arm(T), } - -fn altfoo<T>(f: foo<T>) { - let mut hit = false; - match f { foo::arm::<T>(_x) => { println!("in arm"); hit = true; } } - assert!((hit)); -} - -pub fn main() { altfoo::<isize>(foo::arm::<isize>(10)); } |