rust/tests/ui/issues/issue-64792-bad-unicode-ctor.stderr

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

13 lines
400 B
Plaintext
Raw Normal View History

error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
2019-10-07 21:06:14 +00:00
--> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
|
LL | struct X {}
| ----------- `X` defined here
2022-06-08 18:07:59 +00:00
LL |
2019-10-07 21:06:14 +00:00
LL | const Y: X = X("ö");
| ^^^^^^ help: use struct literal syntax instead: `X {}`
2019-10-07 21:06:14 +00:00
error: aborting due to 1 previous error
2019-10-07 21:06:14 +00:00
For more information about this error, try `rustc --explain E0423`.