]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32995-2.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / 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`.