]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-79744.rs
Auto merge of #106984 - Dylan-DPC:rollup-xce8263, r=Dylan-DPC
[rust.git] / tests / ui / lint / issue-79744.rs
1 fn main() {
2     let elem = 6i8;
3     let e2 = 230;
4     //~^ ERROR literal out of range for `i8`
5     //~| HELP consider using the type `u8` instead
6
7     let mut vec = Vec::new();
8
9     vec.push(e2);
10     vec.push(elem);
11
12     println!("{:?}", vec);
13 }