Skip to content

Error spans for illegal extern "ABI" #14499

Closed
@liigo

Description

@liigo
pub extern "xxxxx" fn add(x: int, y: int) -> int {
    x + y
}
hello.rs:9:20: 9:22 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic], found `xxxxx`
hello.rs:9 pub extern "xxxxx" fn add(x: int, y: int) -> int {
                              ^~
error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions