]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/method-and-field-eager-resolution.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / method-and-field-eager-resolution.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/method-and-field-eager-resolution.rs:5:5
3    |
4 LL |     let mut x = Default::default();
5    |         ----- consider giving `x` a type
6 LL |     x.0;
7    |     ^ cannot infer type
8    |
9    = note: type must be known at this point
10
11 error[E0282]: type annotations needed
12   --> $DIR/method-and-field-eager-resolution.rs:12:5
13    |
14 LL |     let mut x = Default::default();
15    |         ----- consider giving `x` a type
16 LL |     x[0];
17    |     ^ cannot infer type
18    |
19    = note: type must be known at this point
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0282`.