2018-12-15 17:31:46 +00:00
|
|
|
error: the `Self` constructor can only be used with tuple or unit structs
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-56835.rs:4:12
|
2018-12-15 04:33:54 +00:00
|
|
|
|
|
|
|
|
LL | fn bar(Self(foo): Self) {}
|
2018-12-20 18:10:46 -05:00
|
|
|
| ^^^^^^^^^ help: use curly brackets: `Self { /* fields */ }`
|
2018-12-15 04:33:54 +00:00
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
error[E0164]: expected tuple struct or tuple variant, found self constructor `Self`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-56835.rs:4:12
|
2018-12-15 04:33:54 +00:00
|
|
|
|
|
|
|
|
LL | fn bar(Self(foo): Self) {}
|
2022-10-25 20:15:15 +04:00
|
|
|
| ^^^^^^^^^ not a tuple struct or tuple variant
|
2018-12-15 04:33:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0164`.
|