]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-32995-2.rs
Rollup merge of #106867 - sunfishcode:sunfishcode/std-os-fd-stable-version, r=m-ou-se
[rust.git] / tests / ui / issues / issue-32995-2.rs
1 fn main() {
2     { fn f<X: ::std::marker()::Send>() {} }
3     //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
4
5     { fn f() -> impl ::std::marker()::Send { } }
6     //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
7 }
8
9 #[derive(Clone)]
10 struct X;
11
12 impl ::std::marker()::Copy for X {}
13 //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait