blob: fcdd50f1422661c169a435df3d8fdf25cdc1d77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0282]: type annotations needed
--> $DIR/issue-109905.rs:13:5
|
LL | <() as Trait<'static, _>>::m(());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the trait `Trait`
error[E0282]: type annotations needed
--> $DIR/issue-109905.rs:20:5
|
LL | Trait::<'static, _>::m(());
| ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the trait `Trait`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0282`.
|