Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: cast from i8 to u8 always fails #604

Closed
edg-l opened this issue May 16, 2024 · 0 comments · Fixed by #605
Closed

Bug: cast from i8 to u8 always fails #604

edg-l opened this issue May 16, 2024 · 0 comments · Fixed by #605
Assignees
Labels
bug Something isn't working

Comments

@edg-l
Copy link
Member

edg-l commented May 16, 2024

fn main() {
    let n_sub: i8 = 127;
    let _n_super: u8 = n_sub.try_into().unwrap();
}
@edg-l edg-l added the bug Something isn't working label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants