summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/xcrate-reachable.rs
blob: 1b1cff3387d9f7ea34388d4dd17f7c36b95acd75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass

// aux-build:xcrate-reachable.rs

#![feature(generator_trait)]

extern crate xcrate_reachable as foo;

use std::ops::Generator;
use std::pin::Pin;

fn main() {
    Pin::new(&mut foo::foo()).resume(());
}