rust/tests/ui/traits/alias/dont-elaborate-non-self.rs
Michael Goulet 4560b61cd1 Broken tests
2023-04-11 17:45:42 +00:00

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() {}