rust/tests/ui/coroutine/xcrate-reachable.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
219 B
Rust
Raw Normal View History

//@ run-pass
//@ aux-build:xcrate-reachable.rs
2023-10-19 21:46:28 +00:00
#![feature(coroutine_trait)]
extern crate xcrate_reachable as foo;
2023-10-19 16:06:43 +00:00
use std::ops::Coroutine;
2018-10-04 18:49:38 +00:00
use std::pin::Pin;
fn main() {
Pin::new(&mut foo::foo()).resume(());
}