blob: e9725a027d379fce2ef3304e11ab7c772e7543d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
fn main() {
let elem = 6i8;
let e2 = 230;
//~^ ERROR literal out of range for `i8`
//~| HELP consider using the type `u8` instead
let mut vec = Vec::new();
vec.push(e2);
vec.push(elem);
println!("{:?}", vec);
}
|