error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/E0610.rs:13:15 | LL | let _ = x.foo; //~ ERROR E0610 | ^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0610`.