blob: 21e19828a99cf4ad9855b046e1bb2a7525caaec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
error[E0282]: type annotations needed
--> $DIR/method-and-field-eager-resolution.rs:15:5
|
LL | let mut x = Default::default();
| ----- consider giving `x` a type
LL | x.0;
| ^ cannot infer type for `_`
|
= note: type must be known at this point
error[E0282]: type annotations needed
--> $DIR/method-and-field-eager-resolution.rs:22:5
|
LL | let mut x = Default::default();
| ----- consider giving `x` a type
LL | x[0];
| ^ cannot infer type for `_`
|
= note: type must be known at this point
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0282`.
|