]>
Commit | Line | Data |
---|---|---|
17df50a5 | 1 | error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied |
e1599b0c | 2 | --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | fn f<F:Trait(isize) -> isize>(x: F) {} |
5869c6ff XL |
5 | | ^^^^^------- help: remove these parenthetical generics |
6 | | | | |
17df50a5 | 7 | | expected 0 generic arguments |
5869c6ff | 8 | | |
17df50a5 | 9 | note: trait defined here, with 0 generic parameters |
5869c6ff XL |
10 | --> $DIR/unboxed-closure-sugar-wrong-trait.rs:3:7 |
11 | | | |
12 | LL | trait Trait {} | |
13 | | ^^^^^ | |
ff7c6d11 XL |
14 | |
15 | error[E0220]: associated type `Output` not found for `Trait` | |
ba9703b0 | 16 | --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:24 |
ff7c6d11 | 17 | | |
0531ce1d | 18 | LL | fn f<F:Trait(isize) -> isize>(x: F) {} |
ba9703b0 | 19 | | ^^^^^ associated type `Output` not found |
ff7c6d11 XL |
20 | |
21 | error: aborting due to 2 previous errors | |
22 | ||
48663c56 | 23 | Some errors have detailed explanations: E0107, E0220. |
b7449926 | 24 | For more information about an error, try `rustc --explain E0107`. |