]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unwrap_expect_used.stderr
New upstream version 1.65.0+dfsg1
[rustc.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 = note: `-D clippy::unwrap-used` implied by `-D warnings`
8 = help: if this value is `None`, it will panic
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 = note: `-D clippy::expect-used` implied by `-D warnings`
17 = help: if this value is `None`, it will panic
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