blob: 4f9eaacb8ed068bc3896385f095ec5ae936eff46 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![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() {}
|