about summary refs log tree commit diff
path: root/tests/ui/generator/control-flow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generator/control-flow.rs')
-rw-r--r--tests/ui/generator/control-flow.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/generator/control-flow.rs b/tests/ui/generator/control-flow.rs
index 4f69c785560..46c21263cc2 100644
--- a/tests/ui/generator/control-flow.rs
+++ b/tests/ui/generator/control-flow.rs
@@ -6,16 +6,16 @@
 #![feature(generators, generator_trait)]
 
 use std::marker::Unpin;
-use std::ops::{GeneratorState, Generator};
+use std::ops::{CoroutineState, Coroutine};
 use std::pin::Pin;
 
 fn finish<T>(mut amt: usize, mut t: T) -> T::Return
-    where T: Generator<(), Yield = ()> + Unpin,
+    where T: Coroutine<(), Yield = ()> + Unpin,
 {
     loop {
         match Pin::new(&mut t).resume(()) {
-            GeneratorState::Yielded(()) => amt = amt.checked_sub(1).unwrap(),
-            GeneratorState::Complete(ret) => {
+            CoroutineState::Yielded(()) => amt = amt.checked_sub(1).unwrap(),
+            CoroutineState::Complete(ret) => {
                 assert_eq!(amt, 0);
                 return ret
             }