]> git.lizzy.rs Git - rust.git/blob - tests/ui/to_digit_is_some.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / to_digit_is_some.stderr
1 error: use of `.to_digit(..).is_some()`
2   --> $DIR/to_digit_is_some.rs:9:13
3    |
4 LL |     let _ = d.to_digit(8).is_some();
5    |             ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `d.is_digit(8)`
6    |
7    = note: `-D clippy::to-digit-is-some` implied by `-D warnings`
8
9 error: use of `.to_digit(..).is_some()`
10   --> $DIR/to_digit_is_some.rs:10:13
11    |
12 LL |     let _ = char::to_digit(c, 8).is_some();
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `char::is_digit(c, 8)`
14
15 error: aborting due to 2 previous errors
16