]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mut_from_ref.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / mut_from_ref.stderr
index 0f5baa2d27ebd7c3e861420f27cc199cd536d0c7..544d1aa5f14b6347d8b2e3535a564a075c6e2e34 100644 (file)
@@ -1,62 +1,62 @@
 error: mutable borrow from immutable input(s)
--> $DIR/mut_from_ref.rs:9:39
-  |
-9 |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
-  |                                       ^^^^^^^^
-  |
-  = note: `-D clippy::mut-from-ref` implied by `-D warnings`
 --> $DIR/mut_from_ref.rs:16:39
+   |
+LL |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
+   |                                       ^^^^^^^^
+   |
+   = note: `-D clippy::mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
--> $DIR/mut_from_ref.rs:9:29
-  |
-9 |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
-  |                             ^^^^^
 --> $DIR/mut_from_ref.rs:16:29
+   |
+LL |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
+   |                             ^^^^^
 
 error: mutable borrow from immutable input(s)
-  --> $DIR/mut_from_ref.rs:15:25
+  --> $DIR/mut_from_ref.rs:22:25
    |
-15 |     fn ouch(x: &Foo) -> &mut Foo;
+LL |     fn ouch(x: &Foo) -> &mut Foo;
    |                         ^^^^^^^^
    |
 note: immutable borrow here
-  --> $DIR/mut_from_ref.rs:15:16
+  --> $DIR/mut_from_ref.rs:22:16
    |
-15 |     fn ouch(x: &Foo) -> &mut Foo;
+LL |     fn ouch(x: &Foo) -> &mut Foo;
    |                ^^^^
 
 error: mutable borrow from immutable input(s)
-  --> $DIR/mut_from_ref.rs:24:21
+  --> $DIR/mut_from_ref.rs:31:21
    |
-24 | fn fail(x: &u32) -> &mut u16 {
+LL | fn fail(x: &u32) -> &mut u16 {
    |                     ^^^^^^^^
    |
 note: immutable borrow here
-  --> $DIR/mut_from_ref.rs:24:12
+  --> $DIR/mut_from_ref.rs:31:12
    |
-24 | fn fail(x: &u32) -> &mut u16 {
+LL | fn fail(x: &u32) -> &mut u16 {
    |            ^^^^
 
 error: mutable borrow from immutable input(s)
-  --> $DIR/mut_from_ref.rs:28:50
+  --> $DIR/mut_from_ref.rs:35:50
    |
-28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
+LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
    |                                                  ^^^^^^^^^^^
    |
 note: immutable borrow here
-  --> $DIR/mut_from_ref.rs:28:25
+  --> $DIR/mut_from_ref.rs:35:25
    |
-28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
+LL | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
    |                         ^^^^^^^
 
 error: mutable borrow from immutable input(s)
-  --> $DIR/mut_from_ref.rs:32:67
+  --> $DIR/mut_from_ref.rs:39:67
    |
-32 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
+LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
    |                                                                   ^^^^^^^^^^^
    |
 note: immutable borrow here
-  --> $DIR/mut_from_ref.rs:32:27
+  --> $DIR/mut_from_ref.rs:39:27
    |
-32 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
+LL | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
    |                           ^^^^^^^     ^^^^^^^
 
 error: aborting due to 5 previous errors