1 #![feature(unboxed_closures)]
3 trait Zero { fn dummy(&self); }
5 fn foo1(_: dyn Zero()) {
6 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
7 //~| ERROR associated type `Output` not found for `Zero`
10 fn foo2(_: dyn Zero<usize>) {
11 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
14 fn foo3(_: dyn Zero < usize >) {
15 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
18 fn foo4(_: dyn Zero(usize)) {
19 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
20 //~| ERROR associated type `Output` not found for `Zero`
23 fn foo5(_: dyn Zero ( usize )) {
24 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
25 //~| ERROR associated type `Output` not found for `Zero`