diff options
Diffstat (limited to 'tests/ui/generator/issue-102645.rs')
-rw-r--r-- | tests/ui/generator/issue-102645.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/ui/generator/issue-102645.rs b/tests/ui/generator/issue-102645.rs deleted file mode 100644 index 35acd5cd7..000000000 --- a/tests/ui/generator/issue-102645.rs +++ /dev/null @@ -1,23 +0,0 @@ -// compile-flags: -Zdrop-tracking - -#![feature(generators, generator_trait)] - -use std::ops::Generator; -use std::pin::Pin; - -fn main() { - let mut a = 5; - let mut b = || { - let d = 6; - yield; - _zzz(); // #break - a = d; - }; - Pin::new(&mut b).resume(); - //~^ ERROR this method takes 1 argument but 0 arguments were supplied - // This type error is required to reproduce the ICE... -} - -fn _zzz() { - () -} |