rust/src/test/ui/issues/issue-60989.rs

19 lines
300 B
Rust
Raw Normal View History

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 for this type
let c1 = A {};
2019-05-28 14:46:13 -04:00
c1::<dyn Into<B>>;
//~^ ERROR type arguments are not allowed for this type
}