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