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