fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
984 B31 linesraw
1error: used `unwrap()` on an `Option` value
2  --> $DIR/unwrap.rs:6:13
3   |
4LL |     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   = help: to override `-D warnings` add `#[allow(clippy::unwrap_used)]`
11
12error: used `unwrap()` on a `Result` value
13  --> $DIR/unwrap.rs:12:13
14   |
15LL |     let _ = res.unwrap();
16   |             ^^^^^^^^^^^^
17   |
18   = note: if this value is an `Err`, it will panic
19   = help: consider using `expect()` to provide a better panic message
20
21error: used `unwrap_err()` on a `Result` value
22  --> $DIR/unwrap.rs:14:13
23   |
24LL |     let _ = res.unwrap_err();
25   |             ^^^^^^^^^^^^^^^^
26   |
27   = note: if this value is an `Ok`, it will panic
28   = help: consider using `expect_err()` to provide a better panic message
29
30error: aborting due to 3 previous errors
31