rust/src/test/ui/issues/issue-79744.rs

14 lines
237 B
Rust
Raw Normal View History

fn main() {
let elem = 6i8;
let e2 = 230;
//~^ ERROR literal out of range for `i8`
//~| HELP consider using `u8` instead
let mut vec = Vec::new();
vec.push(e2);
vec.push(elem);
println!("{:?}", vec);
}