Files
rust/tests/ui/structs/struct-field-access-errors-24365.stderr

22 lines
687 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0609]: no field `b` on type `Foo`
2025-07-13 16:39:45 -04:00
--> $DIR/struct-field-access-errors-24365.rs:11:22
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | println!("{}", a.b);
2023-11-09 06:01:10 +00:00
| ^ unknown field
2018-07-15 14:11:54 -07:00
error[E0609]: no field `attr_name_idx` on type `&Attribute`
2025-07-13 16:39:45 -04:00
--> $DIR/struct-field-access-errors-24365.rs:18:18
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | let z = (&x).attr_name_idx;
2023-11-09 06:01:10 +00:00
| ^^^^^^^^^^^^^ unknown field
2018-07-15 14:11:54 -07:00
error[E0609]: no field `attr_name_idx` on type `Attribute`
2025-07-13 16:39:45 -04:00
--> $DIR/struct-field-access-errors-24365.rs:19:15
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | let y = x.attr_name_idx;
2023-11-09 06:01:10 +00:00
| ^^^^^^^^^^^^^ unknown field
2018-07-15 14:11:54 -07:00
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0609`.