]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/ok_expect.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / ok_expect.stderr
CommitLineData
abe05a73
XL
1error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
2 --> $DIR/ok_expect.rs:14:5
3 |
414 | res.ok().expect("disaster!");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D ok-expect` implied by `-D warnings`
8
9error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
10 --> $DIR/ok_expect.rs:20:5
11 |
1220 | res3.ok().expect("whoof");
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
16 --> $DIR/ok_expect.rs:22:5
17 |
1822 | res4.ok().expect("argh");
19 | ^^^^^^^^^^^^^^^^^^^^^^^^
20
21error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
22 --> $DIR/ok_expect.rs:24:5
23 |
2424 | res5.ok().expect("oops");
25 | ^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
28 --> $DIR/ok_expect.rs:26:5
29 |
3026 | res6.ok().expect("meh");
31 | ^^^^^^^^^^^^^^^^^^^^^^^
32
2c00a5a8
XL
33error: aborting due to 5 previous errors
34