1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/issue-27592.rs:16:27
4 LL | write(|| format_args!("{}", String::from("Hello world")));
5 | ^^^^ -- temporary value needs to live until here
7 | | temporary value dropped here while still borrowed
8 | temporary value does not live long enough
10 error[E0597]: borrowed value does not live long enough
11 --> $DIR/issue-27592.rs:16:33
13 LL | write(|| format_args!("{}", String::from("Hello world")));
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^-- temporary value needs to live until here
16 | | temporary value dropped here while still borrowed
17 | temporary value does not live long enough
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0597`.