Skip to content

Commit bc65eeb

Browse files
committed
Suppress warnings on cast by default
1 parent d1d941a commit bc65eeb

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)