about summary refs log tree commit diff
path: root/tests/run-coverage/generator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-coverage/generator.rs')
-rw-r--r--tests/run-coverage/generator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-coverage/generator.rs b/tests/run-coverage/generator.rs
index 4319991021e..4ae4f71fcf8 100644
--- a/tests/run-coverage/generator.rs
+++ b/tests/run-coverage/generator.rs
@@ -1,6 +1,6 @@
 #![feature(generators, generator_trait)]
 
-use std::ops::{Generator, GeneratorState};
+use std::ops::{Coroutine, CoroutineState};
 use std::pin::Pin;
 
 // The following implementation of a function called from a `yield` statement
@@ -20,11 +20,11 @@ fn main() {
     };
 
     match Pin::new(&mut generator).resume(()) {
-        GeneratorState::Yielded(Ok(1)) => {}
+        CoroutineState::Yielded(Ok(1)) => {}
         _ => panic!("unexpected return from resume"),
     }
     match Pin::new(&mut generator).resume(()) {
-        GeneratorState::Complete("foo") => {}
+        CoroutineState::Complete("foo") => {}
         _ => panic!("unexpected return from resume"),
     }
 }