Skip to content

Tracking Issue i64 to u64 (as) #140870

@AveNRU

Description

@AveNRU
let x: i64 = -10;
let y: u64 = x as u64;
println!("{}", y); // 18446744073709551606

Please help with error when do not worry transform i64 to u64

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions