mirror of https://github.com/rust-lang/rust
23 lines
472 B
Rust
23 lines
472 B
Rust
//@ aux-build:collect_hidden_types.rs
|
|
use collect_hidden_types::Service;
|
|
use std::future::Future;
|
|
use std::pin::Pin;
|
|
use std::task::Context;
|
|
|
|
//@ build-pass
|
|
|
|
//@ edition:2018
|
|
|
|
extern crate collect_hidden_types;
|
|
|
|
fn broken(mut a: collect_hidden_types::A, cx: &mut Context<'_>) {
|
|
let mut fut = a.call(());
|
|
let _ = unsafe { Pin::new_unchecked(&mut fut) }.poll(cx);
|
|
}
|
|
|
|
pub async fn meeb(cx: &mut Context<'_>) {
|
|
broken(collect_hidden_types::A, cx);
|
|
}
|
|
|
|
fn main() {}
|