Files
rust/tests/ui/macros/private-struct-member-macro-access-25386.stderr

15 lines
595 B
Plaintext
Raw Normal View History

error[E0616]: field `c_object` of struct `Item` is private
2025-07-13 16:39:45 -04:00
--> $DIR/private-struct-member-macro-access-25386.rs:20:16
2018-07-15 14:11:54 -07:00
|
LL | (*$var.c_object).$member.is_some()
2020-03-22 11:18:06 -07:00
| ^^^^^^^^ private field
2018-07-15 14:11:54 -07:00
...
LL | println!("{}", check_ptr_exist!(item, name));
| ---------------------------- in this macro invocation
|
= note: this error originates in the macro `check_ptr_exist` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0616`.