2019-10-15 00:20:50 +00:00
|
|
|
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("ö");
|
2020-08-10 04:02:58 +00:00
|
|
|
| ^^^^^^ help: use struct literal syntax instead: `X {}`
|
2019-10-07 21:06:14 +00:00
|
|
|
|
2023-11-21 15:44:16 +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`.
|