2014-11-15 16:04:04 -05:00
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
|
|
2014-09-05 21:27:47 -07:00
|
|
|
trait Trait {}
|
|
|
|
|
|
2015-01-08 21:54:35 +11:00
|
|
|
fn f<F:Trait(isize) -> isize>(x: F) {}
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR trait takes 0 generic arguments but 1 generic argument
|
2021-01-02 19:45:11 +01:00
|
|
|
//~| ERROR associated type `Output` not found for `Trait`
|
2014-09-05 21:27:47 -07:00
|
|
|
|
|
|
|
|
fn main() {}
|