]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60989.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / issues / issue-60989.rs
1 struct A {}
2 struct B {}
3
4 impl From<A> for B {
5     fn from(a: A) -> B {
6         B{}
7     }
8 }
9
10 fn main() {
11     let c1 = ();
12     c1::<()>;
13     //~^ ERROR type arguments are not allowed on local variable
14
15     let c1 = A {};
16     c1::<dyn Into<B>>;
17     //~^ ERROR type arguments are not allowed on local variable
18 }