summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-32995-2.rs
blob: e713a64d3f5a63fdd94ba260a5cff679bddee299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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