fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
627 B16 linesraw
1error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2  --> $DIR/unboxed-closure-sugar-used-on-struct-1.rs:8:16
3   |
4LL |     let x: Box<Bar()> = panic!();
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-1.rs:8:16
9   |
10LL |     let x: Box<Bar()> = panic!();
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`.