mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
14 lines
366 B
Rust
14 lines
366 B
Rust
// edition: 2021
|
|
|
|
#![feature(unsized_fn_params, unsized_locals)]
|
|
//~^ WARN the feature `unsized_locals` is incomplete
|
|
|
|
use std::future::Future;
|
|
|
|
async fn bug<T>(mut f: dyn Future<Output = T> + Unpin) -> T {
|
|
//~^ ERROR the size for values of type `(dyn Future<Output = T> + Unpin + 'static)` cannot be known at compilation time
|
|
(&mut f).await
|
|
}
|
|
|
|
fn main() {}
|