diff options
Diffstat (limited to 'tests/ui/lint/issue-79744.rs')
-rw-r--r-- | tests/ui/lint/issue-79744.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/lint/issue-79744.rs b/tests/ui/lint/issue-79744.rs new file mode 100644 index 000000000..e9725a027 --- /dev/null +++ b/tests/ui/lint/issue-79744.rs @@ -0,0 +1,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); +} |