rust/tests/ui/issues/issue-56835.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
552 B
Plaintext
Raw Normal View History

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) {}
| ^^^^^^^^^ help: use curly brackets: `Self { /* fields */ }`
2018-12-15 04:33:54 +00: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) {}
| ^^^^^^^^^ 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`.