1 error[E0560]: struct `NonCopyable` has no field named `p`
2 --> $DIR/issue-4736.rs:4:26
4 LL | struct NonCopyable(());
5 | ----------- `NonCopyable` defined here
7 LL | let z = NonCopyable{ p: () };
8 | ^ field does not exist
10 help: `NonCopyable` is a tuple struct, use the appropriate syntax
12 LL | let z = NonCopyable(/* fields */);
13 | ~~~~~~~~~~~~~~~~~~~~~~~~~
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0560`.