2023-10-23 21:06:06 -05:00
|
|
|
error[E0609]: no field `longname` on type `Arc<S>`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:10:15
|
|
|
|
|
|
|
|
|
LL | let _ = x.longname;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: a field with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _ = x.long_name;
|
|
|
|
| ~~~~~~~~~
|
2023-10-23 21:06:06 -05:00
|
|
|
|
|
|
|
error[E0609]: no field `longname` on type `S`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:12:15
|
|
|
|
|
|
|
|
|
LL | let _ = y.longname;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: a field with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _ = y.long_name;
|
|
|
|
| ~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0609]: no field `longname` on type `Option<Arc<S>>`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:14:15
|
|
|
|
|
|
|
|
|
LL | let _ = a.longname;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: a field with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _ = a.unwrap().long_name;
|
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0609]: no field `long_name` on type `Option<S>`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:16:15
|
|
|
|
|
|
|
|
|
LL | let _ = b.long_name;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: one of the expressions' fields has a field of the same name
|
|
|
|
|
|
|
|
|
LL | let _ = b.unwrap().long_name;
|
|
|
|
| +++++++++
|
|
|
|
|
|
|
|
error[E0609]: no field `longname` on type `Result<Arc<S>, ()>`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:18:15
|
|
|
|
|
|
|
|
|
LL | let _ = c.longname;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: a field with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _ = c.unwrap().long_name;
|
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error[E0609]: no field `long_name` on type `Result<S, ()>`
|
|
|
|
--> $DIR/suggest-field-through-deref.rs:20:15
|
|
|
|
|
|
|
|
|
LL | let _ = d.long_name;
|
2023-11-09 00:01:10 -06:00
|
|
|
| ^^^^^^^^^ unknown field
|
2023-10-24 18:31:47 -05:00
|
|
|
|
|
|
|
|
help: one of the expressions' fields has a field of the same name
|
|
|
|
|
|
|
|
|
LL | let _ = d.unwrap().long_name;
|
|
|
|
| +++++++++
|
2023-10-23 21:06:06 -05:00
|
|
|
|
2023-10-24 18:31:47 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2023-10-23 21:06:06 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0609`.
|