diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-25 22:19:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 22:19:52 +0100 |
| commit | 9e3f3306567f62086dcbb7f6a71f0a0c07db0de2 (patch) | |
| tree | a3aec2fc3767c3bea32e56599b6c4922cfa88922 /tests/ui/macros | |
| parent | f21728fee4eb11ec7e73801bc60e78dbb08bf71a (diff) | |
| parent | 7b8251e1886924dde68ff9b6a1c02e9973d0bd0a (diff) | |
| download | rust-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.stderr | 4 |
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 */ | ^^^^^^^^^^^^ | | |
