summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-32995-2.stderr
blob: 6c2d772a23332cf48ad7a0beeb7481a2f486c942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
  --> $DIR/issue-32995-2.rs:2:22
   |
LL |     { fn f<X: ::std::marker()::Send>() {} }
   |                      ^^^^^^^^ only `Fn` traits may use parentheses

error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
  --> $DIR/issue-32995-2.rs:5:29
   |
LL |     { fn f() -> impl ::std::marker()::Send { } }
   |                             ^^^^^^^^ only `Fn` traits may use parentheses

error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
  --> $DIR/issue-32995-2.rs:12:13
   |
LL | impl ::std::marker()::Copy for X {}
   |             ^^^^^^^^ only `Fn` traits may use parentheses

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0214`.