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