2019-08-03 12:58:26 -05:00
|
|
|
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
--> $DIR/issue-32995-2.rs:2:22
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | { fn f<X: ::std::marker()::Send>() {} }
|
2019-08-03 12:58:26 -05:00
|
|
|
| ^^^^^^^^ only `Fn` traits may use parentheses
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-08-03 12:58:26 -05:00
|
|
|
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
--> $DIR/issue-32995-2.rs:5:29
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | { fn f() -> impl ::std::marker()::Send { } }
|
2019-08-03 12:58:26 -05:00
|
|
|
| ^^^^^^^^ only `Fn` traits may use parentheses
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-08-03 12:58:26 -05:00
|
|
|
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
--> $DIR/issue-32995-2.rs:12:13
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | impl ::std::marker()::Copy for X {}
|
2019-08-03 12:58:26 -05:00
|
|
|
| ^^^^^^^^ only `Fn` traits may use parentheses
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-08-03 12:58:26 -05:00
|
|
|
For more information about this error, try `rustc --explain E0214`.
|