File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ wrap_comments = true
5
5
edition = " 2021"
6
6
error_on_line_overflow = true
7
7
version = " Two"
8
+ ignore = [" tests/ui/crashes/ice-10912.rs" ]
Original file line number Diff line number Diff line change
1
+ #![ warn( clippy:: unreadable_literal) ]
2
+ fn f2 ( ) -> impl Sized { & & 3.14159265358979323846 E }
3
+
4
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: expected at least one digit in exponent
2
+ --> $DIR/ice-10912.rs:2:28
3
+ |
4
+ LL | fn f2() -> impl Sized { && 3.14159265358979323846E }
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^
6
+
7
+ error: long literal lacking separators
8
+ --> $DIR/ice-10912.rs:2:28
9
+ |
10
+ LL | fn f2() -> impl Sized { && 3.14159265358979323846E }
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider: `3.141_592_653_589_793_238_46`
12
+ |
13
+ = note: `-D clippy::unreadable-literal` implied by `-D warnings`
14
+
15
+ error: aborting due to 2 previous errors
16
+
You can’t perform that action at this time.
0 commit comments