]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/expect.stderr
Rollup merge of #102764 - compiler-errors:issue-102762, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / expect.stderr
1 error: used `expect()` on `an Option` value
2   --> $DIR/expect.rs:5:13
3    |
4 LL |     let _ = opt.expect("");
5    |             ^^^^^^^^^^^^^^
6    |
7    = help: if this value is `None`, it will panic
8    = note: `-D clippy::expect-used` implied by `-D warnings`
9
10 error: used `expect()` on `a Result` value
11   --> $DIR/expect.rs:10:13
12    |
13 LL |     let _ = res.expect("");
14    |             ^^^^^^^^^^^^^^
15    |
16    = help: if this value is an `Err`, it will panic
17
18 error: used `expect_err()` on `a Result` value
19   --> $DIR/expect.rs:11:13
20    |
21 LL |     let _ = res.expect_err("");
22    |             ^^^^^^^^^^^^^^^^^^
23    |
24    = help: if this value is an `Ok`, it will panic
25
26 error: aborting due to 3 previous errors
27