blob: 134188754b4cef4941cf52d014b5f50e948d32de [file] [log] [blame]
// https://github.com/rust-lang/rust/issues/60989
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
}