fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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