Hi. I have this code:
fn main() {
let x: u8 = 260;
println!("{}", x);
}
What does this number (4) mean at the end?
warning: literal out of range for u8
--> src\main.rs:2:17
|
2 | let x: u8 = 260;
| ^^^
|
= note: #[warn(overflowing_literals)] on by default
Finished dev [unoptimized + debuginfo] target(s) in 0.40s
Running `target\debug\learn_rust.exe`
4
P. S. Yes, I know, what 260 out of range for u8. Thanks!