about summary refs log tree commit diff
path: root/tests/ui/macros
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-25 22:19:52 +0100
committerGitHub <noreply@github.com>2023-01-25 22:19:52 +0100
commit9e3f3306567f62086dcbb7f6a71f0a0c07db0de2 (patch)
treea3aec2fc3767c3bea32e56599b6c4922cfa88922 /tests/ui/macros
parentf21728fee4eb11ec7e73801bc60e78dbb08bf71a (diff)
parent7b8251e1886924dde68ff9b6a1c02e9973d0bd0a (diff)
downloadrust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.tar.gz
rust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.zip
Rollup merge of #106897 - estebank:issue-99430, r=davidtwco
Tweak E0597

CC #99430
Diffstat (limited to 'tests/ui/macros')
-rw-r--r--tests/ui/macros/format-args-temporaries-in-write.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/macros/format-args-temporaries-in-write.stderr b/tests/ui/macros/format-args-temporaries-in-write.stderr
index 287cd7d6704..520b2ce5052 100644
--- a/tests/ui/macros/format-args-temporaries-in-write.stderr
+++ b/tests/ui/macros/format-args-temporaries-in-write.stderr
@@ -1,6 +1,8 @@
 error[E0597]: `mutex` does not live long enough
   --> $DIR/format-args-temporaries-in-write.rs:41:27
    |
+LL |         let mutex = Mutex;
+   |             ----- binding `mutex` declared here
 LL |         write!(Out, "{}", mutex.lock()) /* no semicolon */
    |                           ^^^^^^^^^^^^
    |                           |
@@ -16,6 +18,8 @@ LL |     };
 error[E0597]: `mutex` does not live long enough
   --> $DIR/format-args-temporaries-in-write.rs:47:29
    |
+LL |         let mutex = Mutex;
+   |             ----- binding `mutex` declared here
 LL |         writeln!(Out, "{}", mutex.lock()) /* no semicolon */
    |                             ^^^^^^^^^^^^
    |                             |