]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unwrap.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unwrap.stderr
1 error: used `unwrap()` on an `Option` value
2 --> $DIR/unwrap.rs:6:13
3 |
4 LL | let _ = opt.unwrap();
5 | ^^^^^^^^^^^^
6 |
7 = note: if this value is `None`, it will panic
8 = help: consider using `expect()` to provide a better panic message
9 = note: `-D clippy::unwrap-used` implied by `-D warnings`
10
11 error: used `unwrap()` on a `Result` value
12 --> $DIR/unwrap.rs:11:13
13 |
14 LL | let _ = res.unwrap();
15 | ^^^^^^^^^^^^
16 |
17 = note: if this value is an `Err`, it will panic
18 = help: consider using `expect()` to provide a better panic message
19
20 error: used `unwrap_err()` on a `Result` value
21 --> $DIR/unwrap.rs:12:13
22 |
23 LL | let _ = res.unwrap_err();
24 | ^^^^^^^^^^^^^^^^
25 |
26 = note: if this value is an `Ok`, it will panic
27 = help: consider using `expect_err()` to provide a better panic message
28
29 error: aborting due to 3 previous errors
30