about summary refs log tree commit diff
path: root/tests/ui/lint/lint-overflowing-int-136675.stderr
blob: 3b67c663ac2b70f3dcbbec3a97b5fb59cd49614c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: literal out of range for `i8`
  --> $DIR/lint-overflowing-int-136675.rs:2:12
   |
LL |     if let -129 = 0i8 {}
   |            ^^^^
   |
   = note: the literal `-129` does not fit into the type `i8` whose range is `-128..=127`
   = help: consider using the type `i16` instead
   = note: `#[deny(overflowing_literals)]` on by default

error: literal out of range for `i8`
  --> $DIR/lint-overflowing-int-136675.rs:3:17
   |
LL |     let x: i8 = -129;
   |                 ^^^^
   |
   = note: the literal `-129` does not fit into the type `i8` whose range is `-128..=127`
   = help: consider using the type `i16` instead

error: aborting due to 2 previous errors