1error[E0609]: no field `c` on type `&Foo`
2  --> $DIR/issue-30580.rs:12:11
3   |
4LL |         b.c;
5   |           ^ help: a field with a similar name exists: `a`
6
7error: aborting due to previous error
8
9For more information about this error, try `rustc --explain E0609`.
10