rust-clippy/tests/ui/to_digit_is_some.stderr

17 lines
519 B
Text
Raw Normal View History

2019-11-10 13:12:05 +00:00
error: use of `.to_digit(..).is_some()`
--> $DIR/to_digit_is_some.rs:9:13
|
2022-04-02 21:01:07 +00:00
LL | let _ = d.to_digit(8).is_some();
2023-07-01 11:08:01 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `d.is_digit(8)`
2019-11-10 13:12:05 +00:00
|
= note: `-D clippy::to-digit-is-some` implied by `-D warnings`
error: use of `.to_digit(..).is_some()`
--> $DIR/to_digit_is_some.rs:10:13
|
2022-04-02 21:01:07 +00:00
LL | let _ = char::to_digit(c, 8).is_some();
2023-07-01 11:08:01 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `char::is_digit(c, 8)`
2019-11-10 13:12:05 +00:00
error: aborting due to 2 previous errors