1 2 3 4 5 6 7 8
#![feature(unboxed_closures)] trait One<A> { fn foo(&self) -> A; } fn foo(_: &dyn One()) //~ ERROR associated type `Output` not found for `One<()>` {} fn main() { }