summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/use-uninit-match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/use-uninit-match.rs')
-rw-r--r--src/test/ui/binding/use-uninit-match.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/binding/use-uninit-match.rs b/src/test/ui/binding/use-uninit-match.rs
deleted file mode 100644
index 9250dbf0c..000000000
--- a/src/test/ui/binding/use-uninit-match.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// run-pass
-#![allow(dead_code)]
-#![allow(non_camel_case_types)]
-
-
-fn foo<T>(o: myoption<T>) -> isize {
- let mut x: isize = 5;
- match o {
- myoption::none::<T> => { }
- myoption::some::<T>(_t) => { x += 1; }
- }
- return x;
-}
-
-enum myoption<T> { none, some(T), }
-
-pub fn main() { println!("{}", 5); }