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
398 B
Plaintext
Raw Normal View History

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