diff options
Diffstat (limited to 'src/test/ui/binding/nested-pattern.rs')
-rw-r--r-- | src/test/ui/binding/nested-pattern.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/binding/nested-pattern.rs b/src/test/ui/binding/nested-pattern.rs deleted file mode 100644 index 7d14c9ad9..000000000 --- a/src/test/ui/binding/nested-pattern.rs +++ /dev/null @@ -1,16 +0,0 @@ -// run-pass -#![allow(dead_code)] -#![allow(non_camel_case_types)] - -// a bug was causing this to complain about leaked memory on exit - -enum t { foo(isize, usize), bar(isize, Option<isize>), } - -fn nested(o: t) { - match o { - t::bar(_i, Some::<isize>(_)) => { println!("wrong pattern matched"); panic!(); } - _ => { println!("succeeded"); } - } -} - -pub fn main() { nested(t::bar(1, None::<isize>)); } |