fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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