summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-60989.rs
blob: 29db3fdb47104815247640c37fcb33494f3325b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct A {}
struct B {}

impl From<A> for B {
    fn from(a: A) -> B {
        B{}
    }
}

fn main() {
    let c1 = ();
    c1::<()>;
    //~^ ERROR type arguments are not allowed on local variable

    let c1 = A {};
    c1::<dyn Into<B>>;
    //~^ ERROR type arguments are not allowed on local variable
}