about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/to_digit_is_some.stderr
blob: 5ffedb4683f17c795f12097ca9661a514877d6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: use of `.to_digit(..).is_some()`
  --> tests/ui/to_digit_is_some.rs:7:13
   |
LL |     let _ = d.to_digit(8).is_some();
   |             ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `d.is_digit(8)`
   |
   = note: `-D clippy::to-digit-is-some` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::to_digit_is_some)]`

error: use of `.to_digit(..).is_some()`
  --> tests/ui/to_digit_is_some.rs:9:13
   |
LL |     let _ = char::to_digit(c, 8).is_some();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `char::is_digit(c, 8)`

error: use of `.to_digit(..).is_some()`
  --> tests/ui/to_digit_is_some.rs:16:9
   |
LL |         c.to_digit(8).is_some()
   |         ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `c.is_digit(8)`

error: use of `.to_digit(..).is_some()`
  --> tests/ui/to_digit_is_some.rs:26:5
   |
LL |     c.to_digit(8).is_some()
   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `c.is_digit(8)`

error: aborting due to 4 previous errors