]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result` |
2 | --> $DIR/ok_expect.rs:14:5 | |
3 | | | |
4 | 14 | res.ok().expect("disaster!"); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D 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:20:5 | |
11 | | | |
12 | 20 | 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:22:5 | |
17 | | | |
18 | 22 | 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:24:5 | |
23 | | | |
24 | 24 | 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:26:5 | |
29 | | | |
30 | 26 | res6.ok().expect("meh"); | |
31 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
32 | ||
2c00a5a8 XL |
33 | error: aborting due to 5 previous errors |
34 |