2019-10-14 17:20:50 -07:00
|
|
|
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("ö");
|
2020-08-09 21:02:58 -07:00
|
|
|
| ^^^^^^ 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`.
|