]> git.lizzy.rs Git - rust.git/blob - tests/ui/assertions_on_result_states.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / assertions_on_result_states.stderr
1 error: called `assert!` with `Result::is_ok`
2   --> $DIR/assertions_on_result_states.rs:24:5
3    |
4 LL |     assert!(r.is_ok());
5    |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
6    |
7    = note: `-D clippy::assertions-on-result-states` implied by `-D warnings`
8
9 error: called `assert!` with `Result::is_ok`
10   --> $DIR/assertions_on_result_states.rs:42:5
11    |
12 LL |     assert!(get_ok().is_ok());
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok().unwrap()`
14
15 error: called `assert!` with `Result::is_ok`
16   --> $DIR/assertions_on_result_states.rs:45:5
17    |
18 LL |     assert!(get_ok_macro!().is_ok());
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok_macro!().unwrap()`
20
21 error: called `assert!` with `Result::is_ok`
22   --> $DIR/assertions_on_result_states.rs:58:5
23    |
24 LL |     assert!(r.is_ok());
25    |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
26
27 error: called `assert!` with `Result::is_ok`
28   --> $DIR/assertions_on_result_states.rs:64:9
29    |
30 LL |         assert!(r.is_ok());
31    |         ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
32
33 error: called `assert!` with `Result::is_err`
34   --> $DIR/assertions_on_result_states.rs:72:5
35    |
36 LL |     assert!(r.is_err());
37    |     ^^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap_err()`
38
39 error: called `assert!` with `Result::is_err`
40   --> $DIR/assertions_on_result_states.rs:82:5
41    |
42 LL |     assert!(res.is_err())
43    |     ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `res.unwrap_err();`
44
45 error: aborting due to 7 previous errors
46