]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/xcrate-reachable.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / generator / xcrate-reachable.rs
1 // run-pass
2
3 // aux-build:xcrate-reachable.rs
4
5 #![feature(generator_trait)]
6
7 extern crate xcrate_reachable as foo;
8
9 use std::ops::Generator;
10 use std::pin::Pin;
11
12 fn main() {
13     Pin::new(&mut foo::foo()).resume(());
14 }