]> 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 da2d3b9500fedc01a2c87f1897a459a04f875c87..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:14:5
+  --> $DIR/ok_expect.rs:23:5
    |
-14 |     res.ok().expect("disaster!");
+LL |     res.ok().expect("disaster!");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: `-D ok-expect` implied by `-D warnings`
+   = 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:20:5
+  --> $DIR/ok_expect.rs:29:5
    |
-20 |     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:22:5
+  --> $DIR/ok_expect.rs:31:5
    |
-22 |     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:24:5
+  --> $DIR/ok_expect.rs:33:5
    |
-24 |     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:26:5
+  --> $DIR/ok_expect.rs:35:5
    |
-26 |     res6.ok().expect("meh");
+LL |     res6.ok().expect("meh");
    |     ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 5 previous errors