blob: 3ccca2e8a46e1d9d358b11bcaa4fe1c30bbf81f4 [file]
error[E0423]: cannot find function, tuple struct or tuple variant `X` in this scope
--> $DIR/unicode-string-literal-syntax-error-64792.rs:4:14
|
LL | struct X {}
| ----------- `X` defined here
LL |
LL | const Y: X = X("ö");
| ^^^^^^
|
= note: a struct named `X` exists in another namespace
help: use struct literal syntax instead
|
LL - const Y: X = X("ö");
LL + const Y: X = X {};
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0423`.