fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
824 B31 linesraw
1error[E0282]: type annotations needed
2  --> $DIR/method-and-field-eager-resolution.rs:4:9
3   |
4LL |     let mut x = Default::default();
5   |         ^^^^^
6LL |
7LL |     x.0;
8   |     - type must be known at this point
9   |
10help: consider giving `x` an explicit type
11   |
12LL |     let mut x: /* Type */ = Default::default();
13   |              ++++++++++++
14
15error[E0282]: type annotations needed
16  --> $DIR/method-and-field-eager-resolution.rs:11:9
17   |
18LL |     let mut x = Default::default();
19   |         ^^^^^
20LL |
21LL |     x[0];
22   |     - type must be known at this point
23   |
24help: consider giving `x` an explicit type
25   |
26LL |     let mut x: /* Type */ = Default::default();
27   |              ++++++++++++
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0282`.