error[E0609]: no field `desc` on type `&str` --> $DIR/issue-14721.rs:3:24 | LL | println!("{}", foo.desc); | ^^^^ unknown field error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0609`.