1 error[E0616]: field `c_object` of struct `Item` is private
2 --> $DIR/issue-25386.rs:19:16
4 LL | (*$var.c_object).$member.is_some()
5 | ^^^^^^^^ private field
7 LL | println!("{}", check_ptr_exist!(item, name));
8 | ---------------------------- in this macro invocation
10 = note: this error originates in the macro `check_ptr_exist` (in Nightly builds, run with -Z macro-backtrace for more info)
12 error[E0616]: field `name` of struct `CObj` is private
13 --> $DIR/issue-25386.rs:26:43
15 LL | println!("{}", check_ptr_exist!(item, name));
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0616`.