2022-06-05 15:12:30 -05:00
|
|
|
error: needless parenthesis on range literals can be removed
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:7:13
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:7:21
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = ('a')..=('z');
|
|
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
|
|
|
|
error: needless parenthesis on range literals can be removed
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:8:18
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = 'a'..('z');
|
|
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
|
|
|
|
error: needless parenthesis on range literals can be removed
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:10:19
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = (1.)..(2.);
|
|
|
|
| ^^^^ help: try: `2.`
|
|
|
|
|
|
|
|
error: needless parenthesis on range literals can be removed
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:11:13
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = ('a')..;
|
|
|
|
| ^^^^^ help: try: `'a'`
|
|
|
|
|
|
|
|
error: needless parenthesis on range literals can be removed
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_parens_on_range_literals.rs:12:15
|
2022-06-05 15:12:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = ..('z');
|
|
|
|
| ^^^^^ help: try: `'z'`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|