]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/is_digit_ascii_radix.stderr
Rollup merge of #102412 - joboet:dont_panic, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / is_digit_ascii_radix.stderr
1 error: use of `char::is_digit` with literal radix of 10
2   --> $DIR/is_digit_ascii_radix.rs:11:13
3    |
4 LL |     let _ = c.is_digit(10);
5    |             ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()`
6    |
7    = note: `-D clippy::is-digit-ascii-radix` implied by `-D warnings`
8
9 error: use of `char::is_digit` with literal radix of 16
10   --> $DIR/is_digit_ascii_radix.rs:12:13
11    |
12 LL |     let _ = c.is_digit(16);
13    |             ^^^^^^^^^^^^^^ help: try: `c.is_ascii_hexdigit()`
14
15 error: use of `char::is_digit` with literal radix of 16
16   --> $DIR/is_digit_ascii_radix.rs:13:13
17    |
18 LL |     let _ = c.is_digit(0x10);
19    |             ^^^^^^^^^^^^^^^^ help: try: `c.is_ascii_hexdigit()`
20
21 error: aborting due to 3 previous errors
22