rust/tests/ui/extern/extern-empty-string-issue-140884.stderr
Nicholas Nethercote e5fe68da52 Avoid creating an empty identifer in Symbol::to_ident_string.
Because that causes an assertion failure in debug builds.

Fixes #140884.

(cherry picked from commit 1cc0e38fdc)
2025-06-17 10:30:39 -07:00

15 lines
440 B
Text

error[E0703]: invalid ABI: found ``
--> $DIR/extern-empty-string-issue-140884.rs:1:8
|
LL | extern "" {}
| ^^ invalid ABI
|
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `C`
|
LL | extern "C" {}
| +
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0703`.