]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-4736.stderr
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-4736.stderr
1 error[E0560]: struct `NonCopyable` has no field named `p`
2   --> $DIR/issue-4736.rs:4:26
3    |
4 LL | struct NonCopyable(());
5    |        ----------- `NonCopyable` defined here
6 ...
7 LL |     let z = NonCopyable{ p: () };
8    |             -----------  ^ field does not exist
9    |             |
10    |             `NonCopyable` is a tuple struct, use the appropriate syntax: `NonCopyable(/* fields */)`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0560`.