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 01:32:44 +00:00
#![feature(generator_trait)]
extern crate xcrate_reachable as foo;
use std::ops::Generator;
2018-10-04 18:49:38 +00:00
use std::pin::Pin;
fn main() {
Pin::new(&mut foo::foo()).resume(());
}