2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
|
2019-09-04 19:36:01 -05:00
|
|
|
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^^^------- help: remove these parenthetical generics
|
|
|
|
| |
|
2021-02-18 14:01:44 -06:00
|
|
|
| expected 0 generic arguments
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
2021-02-18 14:01:44 -06:00
|
|
|
note: trait defined here, with 0 generic parameters
|
2021-01-02 12:45:11 -06:00
|
|
|
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:3:7
|
|
|
|
|
|
|
|
|
LL | trait Trait {}
|
|
|
|
| ^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0220]: associated type `Output` not found for `Trait`
|
2020-04-09 15:07:22 -05:00
|
|
|
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:24
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
|
2020-04-09 15:07:22 -05:00
|
|
|
| ^^^^^ associated type `Output` not found
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0107, E0220.
|
2018-08-21 20:12:23 -05:00
|
|
|
For more information about an error, try `rustc --explain E0107`.
|