]> 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 6ba8b43954d3e6999749e2ba5d4c7be3d1b77a49..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