]> git.lizzy.rs Git - rust.git/blob - tests/ui/expect.stderr
Split out tests
[rust.git] / tests / ui / expect.stderr
1 error: used expect() on an Option value. If this value is an None it will panic
2   --> $DIR/expect.rs:5:13
3    |
4 LL |     let _ = opt.expect("");
5    |             ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::option-expect-used` implied by `-D warnings`
8
9 error: used expect() on a Result value. If this value is an Err it will panic
10   --> $DIR/expect.rs:10:13
11    |
12 LL |     let _ = res.expect("");
13    |             ^^^^^^^^^^^^^^
14    |
15    = note: `-D clippy::result-expect-used` implied by `-D warnings`
16
17 error: aborting due to 2 previous errors
18