mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 09:27:25 +00:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:8:13
|
|
|
|
|
LL | let _ = ('a')..=('z');
|
|
| ^^^^^ help: try: `'a'`
|
|
|
|
|
= note: `-D clippy::needless-parens-on-range-literals` implied by `-D warnings`
|
|
|
|
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:8:21
|
|
|
|
|
LL | let _ = ('a')..=('z');
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:9:18
|
|
|
|
|
LL | let _ = 'a'..('z');
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:11:19
|
|
|
|
|
LL | let _ = (1.)..(2.);
|
|
| ^^^^ help: try: `2.`
|
|
|
|
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:12:13
|
|
|
|
|
LL | let _ = ('a')..;
|
|
| ^^^^^ help: try: `'a'`
|
|
|
|
error: needless parenthesis on range literals can be removed
|
|
--> $DIR/needless_parens_on_range_literals.rs:13:15
|
|
|
|
|
LL | let _ = ..('z');
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|