fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
601 B16 linesraw
1error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2  --> $DIR/unboxed-closure-sugar-used-on-struct.rs:7:15
3   |
4LL | fn foo(b: Box<Bar()>) {
5   |               ^^^^^ only `Fn` traits may use parentheses
6
7error[E0107]: wrong number of type arguments: expected 1, found 0
8  --> $DIR/unboxed-closure-sugar-used-on-struct.rs:7:15
9   |
10LL | fn foo(b: Box<Bar()>) {
11   |               ^^^^^ expected 1 type argument
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0107, E0214.
16For more information about an error, try `rustc --explain E0107`.