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