summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/assertions_on_result_states.stderr
blob: 97a5f3dfca4a65f93f8d49f1f326fea941531c04 (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
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: aborting due to 6 previous errors