diff options
Diffstat (limited to 'tests/ui/generator/match-bindings.rs')
-rw-r--r-- | tests/ui/generator/match-bindings.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/ui/generator/match-bindings.rs b/tests/ui/generator/match-bindings.rs deleted file mode 100644 index 865904a57..000000000 --- a/tests/ui/generator/match-bindings.rs +++ /dev/null @@ -1,23 +0,0 @@ -// run-pass -#![allow(dead_code)] - -#![feature(generators)] - -enum Enum { - A(String), - B -} - -fn main() { - || { //~ WARN unused generator that must be used - loop { - if let true = true { - match Enum::A(String::new()) { - Enum::A(_var) => {} - Enum::B => {} - } - } - yield; - } - }; -} |