Skip to content

Transmute size errors use incorrect/dummy span. #7316

Closed
@huonw

Description

@huonw
// nothing here

fn main() {
    unsafe { std::cast::transmute::<u64, u8>(1) };
}
transmute-span.rs:1:0: 1:0 error: transmute called on types with different sizes: u64 (64 bits) to u8 (8 bits)
transmute-span.rs:1 // nothing here
                    ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions