mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
252 B
Rust
11 lines
252 B
Rust
#![feature(trait_alias)]
|
|
|
|
use std::future::Future;
|
|
|
|
trait F<Fut: Future<Output = usize>> = Fn() -> Fut;
|
|
|
|
fn f<Fut>(a: dyn F<Fut>) {}
|
|
//~^ ERROR the size for values of type `(dyn Fn() -> Fut + 'static)` cannot be known at compilation time
|
|
|
|
fn main() {}
|