rust/src/test/ui/issues/issue-64792-bad-unicode-ctor.stderr
2019-10-07 22:06:14 +01:00

16 lines
455 B
Plaintext

error[E0423]: expected function, found struct `X`
--> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
|
LL | struct X {}
| ----------- `X` defined here
LL |
LL | const Y: X = X("ö");
| ^
| |
| did you mean `X { /* fields */ }`?
| help: a constant with a similar name exists: `Y`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0423`.