summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/assertions_on_result_states.stderr
blob: 298d63c9c34fb38fc0a304b7aeb09c07db15cdcb (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error: called `assert!` with `Result::is_ok`
  --> $DIR/assertions_on_result_states.rs:24:5
   |
LL |     assert!(r.is_ok());
   |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
   |
   = note: `-D clippy::assertions-on-result-states` implied by `-D warnings`

error: called `assert!` with `Result::is_ok`
  --> $DIR/assertions_on_result_states.rs:42:5
   |
LL |     assert!(get_ok().is_ok());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok().unwrap()`

error: called `assert!` with `Result::is_ok`
  --> $DIR/assertions_on_result_states.rs:45:5
   |
LL |     assert!(get_ok_macro!().is_ok());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok_macro!().unwrap()`

error: called `assert!` with `Result::is_ok`
  --> $DIR/assertions_on_result_states.rs:58:5
   |
LL |     assert!(r.is_ok());
   |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`

error: called `assert!` with `Result::is_ok`
  --> $DIR/assertions_on_result_states.rs:64:9
   |
LL |         assert!(r.is_ok());
   |         ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`

error: called `assert!` with `Result::is_err`
  --> $DIR/assertions_on_result_states.rs:72:5
   |
LL |     assert!(r.is_err());
   |     ^^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap_err()`

error: called `assert!` with `Result::is_err`
  --> $DIR/assertions_on_result_states.rs:82:5
   |
LL |     assert!(res.is_err())
   |     ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `res.unwrap_err();`

error: aborting due to 7 previous errors