]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lint/type-overflow.stderr
Add 'consider using' message to overflowing_literals
[rust.git] / src / test / ui / lint / type-overflow.stderr
index a7a788b877a6d163119fb0d6c304ab30919a747b..dafce414d2fdfb3470a8123517fc7e772de07f84 100644 (file)
@@ -10,6 +10,7 @@ note: the lint level is defined here
 LL | #![warn(overflowing_literals)]
    |         ^^^^^^^^^^^^^^^^^^^^
    = note: the literal `255i8` does not fit into the type `i8` whose range is `-128..=127`
+   = help: consider using `u8` instead
 
 warning: literal out of range for i8
   --> $DIR/type-overflow.rs:10:16
@@ -61,3 +62,5 @@ LL |     let fail = -0b1111_1111i8;
    |
    = note: the literal `0b1111_1111i8` (decimal `255`) does not fit into the type `i8` and will become `-1i8`
 
+warning: 7 warnings emitted
+