Skip to content

Commit 8d6f4c2

Browse files
committed
Workaround conflict between all-uppercase static and NaN definition.
1 parent e2be7ac commit 8d6f4c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/issue-6804.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[allow(non_uppercase_pattern_statics)];
2+
13
// Matching against NaN should result in a warning
24

35
use std::float::NaN;

0 commit comments

Comments
 (0)