diff options
Diffstat (limited to 'tests/ui/coroutine/xcrate-reachable.rs')
-rw-r--r-- | tests/ui/coroutine/xcrate-reachable.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/coroutine/xcrate-reachable.rs b/tests/ui/coroutine/xcrate-reachable.rs new file mode 100644 index 000000000..c63284488 --- /dev/null +++ b/tests/ui/coroutine/xcrate-reachable.rs @@ -0,0 +1,14 @@ +// run-pass + +// aux-build:xcrate-reachable.rs + +#![feature(coroutine_trait)] + +extern crate xcrate_reachable as foo; + +use std::ops::Coroutine; +use std::pin::Pin; + +fn main() { + Pin::new(&mut foo::foo()).resume(()); +} |