about summary refs log tree commit diff
path: root/tests/ui/generator/unsized-local-across-yield.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generator/unsized-local-across-yield.rs')
-rw-r--r--tests/ui/generator/unsized-local-across-yield.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/generator/unsized-local-across-yield.rs b/tests/ui/generator/unsized-local-across-yield.rs
index f761f45c2af..590fa9fcd5f 100644
--- a/tests/ui/generator/unsized-local-across-yield.rs
+++ b/tests/ui/generator/unsized-local-across-yield.rs
@@ -3,9 +3,9 @@
 #![feature(unsized_locals)]
 //~^ WARN the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
 
-use std::ops::Generator;
+use std::ops::Coroutine;
 
-fn across() -> impl Generator {
+fn across() -> impl Coroutine {
     move || {
         let b: [u8] = *(Box::new([]) as Box<[u8]>);
         //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time