2017-05-15 01:21:01 -05:00
|
|
|
fn main() {
|
|
|
|
{ fn f<X: ::std::marker()::Send>() {} }
|
2019-01-20 04:45:38 -06:00
|
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|
2017-05-15 01:21:01 -05:00
|
|
|
|
|
|
|
{ fn f() -> impl ::std::marker()::Send { } }
|
2019-01-20 04:45:38 -06:00
|
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|
2017-05-15 01:21:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
struct X;
|
|
|
|
|
|
|
|
impl ::std::marker()::Copy for X {}
|
2019-01-20 04:45:38 -06:00
|
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|