]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unwrap_expect_used.stderr
Auto merge of #102536 - scottmcm:lookup_line-tweak, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / unwrap_expect_used.stderr
1 error: used `unwrap()` on `an Option` value
2   --> $DIR/unwrap_expect_used.rs:23:5
3    |
4 LL |     Some(3).unwrap();
5    |     ^^^^^^^^^^^^^^^^
6    |
7    = help: if this value is `None`, it will panic
8    = note: `-D clippy::unwrap-used` implied by `-D warnings`
9
10 error: used `expect()` on `an Option` value
11   --> $DIR/unwrap_expect_used.rs:24:5
12    |
13 LL |     Some(3).expect("Hello world!");
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: if this value is `None`, it will panic
17    = note: `-D clippy::expect-used` implied by `-D warnings`
18
19 error: used `unwrap()` on `a Result` value
20   --> $DIR/unwrap_expect_used.rs:31:5
21    |
22 LL |     a.unwrap();
23    |     ^^^^^^^^^^
24    |
25    = help: if this value is an `Err`, it will panic
26
27 error: used `expect()` on `a Result` value
28   --> $DIR/unwrap_expect_used.rs:32:5
29    |
30 LL |     a.expect("Hello world!");
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^
32    |
33    = help: if this value is an `Err`, it will panic
34
35 error: used `unwrap_err()` on `a Result` value
36   --> $DIR/unwrap_expect_used.rs:33:5
37    |
38 LL |     a.unwrap_err();
39    |     ^^^^^^^^^^^^^^
40    |
41    = help: if this value is an `Ok`, it will panic
42
43 error: used `expect_err()` on `a Result` value
44   --> $DIR/unwrap_expect_used.rs:34:5
45    |
46 LL |     a.expect_err("Hello error!");
47    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48    |
49    = help: if this value is an `Ok`, it will panic
50
51 error: aborting due to 6 previous errors
52