diff options
Diffstat (limited to 'tests/ui/nll/issue-48623-generator.rs')
-rw-r--r-- | tests/ui/nll/issue-48623-generator.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/ui/nll/issue-48623-generator.rs b/tests/ui/nll/issue-48623-generator.rs deleted file mode 100644 index 08d2584ee..000000000 --- a/tests/ui/nll/issue-48623-generator.rs +++ /dev/null @@ -1,18 +0,0 @@ -// run-pass -#![allow(path_statements)] -#![allow(dead_code)] - -#![feature(generators, generator_trait)] - -struct WithDrop; - -impl Drop for WithDrop { - fn drop(&mut self) {} -} - -fn reborrow_from_generator(r: &mut ()) { - let d = WithDrop; - move || { d; yield; &mut *r }; //~ WARN unused generator that must be used -} - -fn main() {} |