Skip to content

Commit ea11d6f

Browse files
committed
Merge pull request #605 from mdinger/overflow
Suppress warnings on cast by default
2 parents d1d941a + bc65eeb commit ea11d6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/cast/cast.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Suppress all warnings from casts which overflow.
2+
#![allow(overflowing_literals)]
3+
14
fn main() {
25
let decimal = 65.4321_f32;
36

0 commit comments

Comments
 (0)