]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closure-sugar-used-on-struct.stderr
CommitLineData
9fa01778 1error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
e1599b0c 2 --> $DIR/unboxed-closure-sugar-used-on-struct.rs:7:15
b7449926
XL
3 |
4LL | fn foo(b: Box<Bar()>) {
e1599b0c 5 | ^^^^^ only `Fn` traits may use parentheses
b7449926 6
17df50a5 7error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
0731742a 8 --> $DIR/unboxed-closure-sugar-used-on-struct.rs:7:15
b7449926
XL
9 |
10LL | fn foo(b: Box<Bar()>) {
17df50a5 11 | ^^^ expected 1 generic argument
5869c6ff 12 |
17df50a5 13note: struct defined here, with 1 generic parameter: `A`
5869c6ff
XL
14 --> $DIR/unboxed-closure-sugar-used-on-struct.rs:3:8
15 |
16LL | struct Bar<A> {
17 | ^^^ -
17df50a5 18help: add missing generic argument
5869c6ff 19 |
17df50a5 20LL | fn foo(b: Box<Bar(A)>) {
94222f64 21 | +
b7449926
XL
22
23error: aborting due to 2 previous errors
24
48663c56 25Some errors have detailed explanations: E0107, E0214.
9fa01778 26For more information about an error, try `rustc --explain E0107`.