rust/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong...

11 lines
237 B
Rust

#![feature(unboxed_closures)]
trait Three<A,B,C> { fn dummy(&self) -> (A,B,C); }
fn foo(_: &dyn Three())
//~^ ERROR trait takes 3 generic arguments but 1 generic argument
//~| ERROR associated type `Output` not found
{}
fn main() { }