]> git.lizzy.rs Git - rust.git/blob - tests/ui/expect.stderr
iterate List by value
[rust.git] / 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    = note: `-D clippy::expect-used` implied by `-D warnings`
8    = help: if this value is an `None`, it will panic
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: aborting due to 2 previous errors
19