]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/ok_expect.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / ok_expect.stderr
index f4c8440a77411d356955a5f3d4540ba360698cf8..4ccca10a463bea47e26f065d45fab6f95f9afdcd 100644 (file)
@@ -1,33 +1,33 @@
 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
-  --> $DIR/ok_expect.rs:24:5
+  --> $DIR/ok_expect.rs:23:5
    |
-24 |     res.ok().expect("disaster!");
+LL |     res.ok().expect("disaster!");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::ok-expect` implied by `-D warnings`
 
 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
-  --> $DIR/ok_expect.rs:30:5
+  --> $DIR/ok_expect.rs:29:5
    |
-30 |     res3.ok().expect("whoof");
+LL |     res3.ok().expect("whoof");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
-  --> $DIR/ok_expect.rs:32:5
+  --> $DIR/ok_expect.rs:31:5
    |
-32 |     res4.ok().expect("argh");
+LL |     res4.ok().expect("argh");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
-  --> $DIR/ok_expect.rs:34:5
+  --> $DIR/ok_expect.rs:33:5
    |
-34 |     res5.ok().expect("oops");
+LL |     res5.ok().expect("oops");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: called `ok().expect()` on a Result value. You can call `expect` directly on the `Result`
-  --> $DIR/ok_expect.rs:36:5
+  --> $DIR/ok_expect.rs:35:5
    |
-36 |     res6.ok().expect("meh");
+LL |     res6.ok().expect("meh");
    |     ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 5 previous errors