]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-56835.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-56835.stderr
CommitLineData
69743fb6 1error: the `Self` constructor can only be used with tuple or unit structs
0731742a 2 --> $DIR/issue-56835.rs:4:12
69743fb6
XL
3 |
4LL | fn bar(Self(foo): Self) {}
0731742a 5 | ^^^^^^^^^ help: use curly brackets: `Self { /* fields */ }`
69743fb6 6
e74abb32 7error[E0164]: expected tuple struct or tuple variant, found self constructor `Self`
0731742a 8 --> $DIR/issue-56835.rs:4:12
69743fb6
XL
9 |
10LL | fn bar(Self(foo): Self) {}
11 | ^^^^^^^^^ not a tuple variant or struct
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0164`.