fork/rust

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

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

master
855 B29 linesraw
1error[E0560]: struct `B` has no field named `aa`
2  --> $DIR/suggest-private-fields.rs:15:9
3   |
4LL |         aa: 20,
5   |         ^^ help: a field with a similar name exists: `a`
6
7error[E0560]: struct `B` has no field named `bb`
8  --> $DIR/suggest-private-fields.rs:17:9
9   |
10LL |         bb: 20,
11   |         ^^ `B` does not have this field
12   |
13   = note: available fields are: `a`
14
15error[E0560]: struct `A` has no field named `aa`
16  --> $DIR/suggest-private-fields.rs:22:9
17   |
18LL |         aa: 20,
19   |         ^^ help: a field with a similar name exists: `a`
20
21error[E0560]: struct `A` has no field named `bb`
22  --> $DIR/suggest-private-fields.rs:24:9
23   |
24LL |         bb: 20,
25   |         ^^ help: a field with a similar name exists: `b`
26
27error: aborting due to 4 previous errors
28
29For more information about this error, try `rustc --explain E0560`.