1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/issue-27592.rs:26:27
4 LL | write(|| format_args!("{}", String::from("Hello world")));
5 | ^^^^ - temporary value is freed at the end of this statement
7 | creates a temporary which is freed while still in use
9 error[E0716]: temporary value dropped while borrowed
10 --> $DIR/issue-27592.rs:26:33
12 LL | write(|| format_args!("{}", String::from("Hello world")));
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement
15 | creates a temporary which is freed while still in use
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0716`.