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

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

15 lines
217 B
Rust
Raw Normal View History

// run-pass
// aux-build:xcrate-reachable.rs
2018-03-22 09:32:44 +08:00
#![feature(generator_trait)]
extern crate xcrate_reachable as foo;
use std::ops::Generator;
2018-10-05 02:49:38 +08:00
use std::pin::Pin;
fn main() {
Pin::new(&mut foo::foo()).resume(());
}