Skip to content

Commit

Permalink
Regression in issue 99684 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay authored and Mark-Simulacrum committed Aug 5, 2022
1 parent cd1036e commit 9a95c05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
5 changes: 1 addition & 4 deletions src/test/ui/macros/format-args-temporaries-async.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// FIXME: check-pass
// check-fail
// check-pass
// edition:2021

use std::fmt::{self, Display};
Expand Down Expand Up @@ -30,9 +29,7 @@ impl<'a, T> Future for WriteFmtFuture<'a, T> {

async fn async_main() {
let _write = write!(&mut AsyncStdout, "...").await;
//~^ ERROR temporary value dropped while borrowed
let _writeln = writeln!(&mut AsyncStdout, "...").await;
//~^ ERROR temporary value dropped while borrowed
}

fn main() {
Expand Down
27 changes: 0 additions & 27 deletions src/test/ui/macros/format-args-temporaries-async.stderr

This file was deleted.

0 comments on commit 9a95c05

Please sign in to comment.