fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
823 B21 linesraw
1error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2  --> $DIR/issue-32995-2.rs:2:22
3   |
4LL |     { fn f<X: ::std::marker()::Send>() {} }
5   |                      ^^^^^^^^ only `Fn` traits may use parentheses
6
7error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
8  --> $DIR/issue-32995-2.rs:5:29
9   |
10LL |     { fn f() -> impl ::std::marker()::Send { } }
11   |                             ^^^^^^^^ only `Fn` traits may use parentheses
12
13error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
14  --> $DIR/issue-32995-2.rs:12:13
15   |
16LL | impl ::std::marker()::Copy for X {}
17   |             ^^^^^^^^ only `Fn` traits may use parentheses
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0214`.