summaryrefslogtreecommitdiffstats
path: root/tests/ui/coroutine/xcrate-reachable.rs
blob: c6328448868cbfe26ef141651468ad55ade335aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(());
}