]> git.lizzy.rs Git - rust.git/blob - tests/ui/ok_expect.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / ok_expect.stderr
1 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
2   --> $DIR/ok_expect.rs:23:5
3    |
4 LL |     res.ok().expect("disaster!");
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::ok-expect` implied by `-D warnings`
8
9 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
10   --> $DIR/ok_expect.rs:29:5
11    |
12 LL |     res3.ok().expect("whoof");
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
16   --> $DIR/ok_expect.rs:31:5
17    |
18 LL |     res4.ok().expect("argh");
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
22   --> $DIR/ok_expect.rs:33:5
23    |
24 LL |     res5.ok().expect("oops");
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
28   --> $DIR/ok_expect.rs:35:5
29    |
30 LL |     res6.ok().expect("meh");
31    |     ^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: aborting due to 5 previous errors
34