Files
rust/tests/ui/parser/unicode-string-literal-syntax-error-64792.stderr

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

13 lines
413 B
Plaintext
Raw Permalink Normal View History

error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
2025-08-20 14:02:57 -04:00
--> $DIR/unicode-string-literal-syntax-error-64792.rs:4:14
2019-10-07 22:06:14 +01:00
|
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 1 previous error
2019-10-07 22:06:14 +01:00
For more information about this error, try `rustc --explain E0423`.