mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 20:53:21 +00:00
add test
This commit is contained in:
parent
85002b09a1
commit
bbb9204008
3 changed files with 21 additions and 0 deletions
|
@ -5,3 +5,4 @@ wrap_comments = true
|
|||
edition = "2021"
|
||||
error_on_line_overflow = true
|
||||
version = "Two"
|
||||
ignore = ["tests/ui/crashes/ice-10912.rs"]
|
||||
|
|
4
tests/ui/crashes/ice-10912.rs
Normal file
4
tests/ui/crashes/ice-10912.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
#![warn(clippy::unreadable_literal)]
|
||||
fn f2() -> impl Sized { && 3.14159265358979323846E }
|
||||
|
||||
fn main() {}
|
16
tests/ui/crashes/ice-10912.stderr
Normal file
16
tests/ui/crashes/ice-10912.stderr
Normal file
|
@ -0,0 +1,16 @@
|
|||
error: expected at least one digit in exponent
|
||||
--> $DIR/ice-10912.rs:2:28
|
||||
|
|
||||
LL | fn f2() -> impl Sized { && 3.14159265358979323846E }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: long literal lacking separators
|
||||
--> $DIR/ice-10912.rs:2:28
|
||||
|
|
||||
LL | fn f2() -> impl Sized { && 3.14159265358979323846E }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider: `3.141_592_653_589_793_238_46`
|
||||
|
|
||||
= note: `-D clippy::unreadable-literal` implied by `-D warnings`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
Loading…
Reference in a new issue