]> git.lizzy.rs Git - rust.git/blobdiff - clippy_tests/examples/mut_from_ref.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / mut_from_ref.stderr
index 8da32219a8f79a77a42a2c6a2742641573f8896f..a8f3d8e34d719d6998fa1425e96852844e67e7c7 100644 (file)
@@ -1,70 +1,69 @@
 error: mutable borrow from immutable input(s)
- --> examples/mut_from_ref.rs:9:39
+ --> mut_from_ref.rs:9:39
   |
 9 |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
   |                                       ^^^^^^^^
   |
   = note: `-D mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
- --> examples/mut_from_ref.rs:9:29
+ --> mut_from_ref.rs:9:29
   |
 9 |     fn this_wont_hurt_a_bit(&self) -> &mut Foo {
   |                             ^^^^^
 
 error: mutable borrow from immutable input(s)
-  --> examples/mut_from_ref.rs:15:25
+  --> mut_from_ref.rs:15:25
    |
 15 |     fn ouch(x: &Foo) -> &mut Foo;
    |                         ^^^^^^^^
    |
    = note: `-D mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
-  --> examples/mut_from_ref.rs:15:16
+  --> mut_from_ref.rs:15:16
    |
 15 |     fn ouch(x: &Foo) -> &mut Foo;
    |                ^^^^
 
 error: mutable borrow from immutable input(s)
-  --> examples/mut_from_ref.rs:24:21
+  --> mut_from_ref.rs:24:21
    |
 24 | fn fail(x: &u32) -> &mut u16 {
    |                     ^^^^^^^^
    |
    = note: `-D mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
-  --> examples/mut_from_ref.rs:24:12
+  --> mut_from_ref.rs:24:12
    |
 24 | fn fail(x: &u32) -> &mut u16 {
    |            ^^^^
 
 error: mutable borrow from immutable input(s)
-  --> examples/mut_from_ref.rs:28:50
+  --> mut_from_ref.rs:28:50
    |
 28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
    |                                                  ^^^^^^^^^^^
    |
    = note: `-D mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
-  --> examples/mut_from_ref.rs:28:25
+  --> mut_from_ref.rs:28:25
    |
 28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
    |                         ^^^^^^^
 
 error: mutable borrow from immutable input(s)
-  --> examples/mut_from_ref.rs:32:67
+  --> mut_from_ref.rs:32:67
    |
 32 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
    |                                                                   ^^^^^^^^^^^
    |
    = note: `-D mut-from-ref` implied by `-D warnings`
 note: immutable borrow here
-  --> examples/mut_from_ref.rs:32:27
+  --> mut_from_ref.rs:32:27
    |
 32 | 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
+error: aborting due to previous error(s)
 
-error: Could not compile `clippy_tests`.
 
 To learn more, run the command again with --verbose.