Skip to content

Commit bbb9204

Browse files
committed
add test
1 parent 85002b0 commit bbb9204

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ wrap_comments = true
55
edition = "2021"
66
error_on_line_overflow = true
77
version = "Two"
8+
ignore = ["tests/ui/crashes/ice-10912.rs"]

tests/ui/crashes/ice-10912.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![warn(clippy::unreadable_literal)]
2+
fn f2() -> impl Sized { && 3.14159265358979323846E }
3+
4+
fn main() {}

tests/ui/crashes/ice-10912.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

0 commit comments

Comments
 (0)