rust/src/test/ui/span/method-and-field-eager-resolution.stderr
2018-07-20 09:17:18 -07:00

23 lines
663 B
Text

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
|
= 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
|
= 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`.