mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
409 B
Rust
13 lines
409 B
Rust
fn main() {
|
|
{ fn f<X: ::std::marker()::Send>() {} }
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
{ fn f() -> impl ::std::marker()::Send { } }
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|
|
}
|
|
|
|
#[derive(Clone)]
|
|
struct X;
|
|
|
|
impl ::std::marker()::Copy for X {}
|
|
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
|