]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27592.stderr
Rollup merge of #56425 - scottmcm:redo-vec-set_len-docs, r=Centril
[rust.git] / src / test / ui / issues / issue-27592.stderr
1 error[E0597]: borrowed value does not live long enough
2   --> $DIR/issue-27592.rs:16:27
3    |
4 LL |     write(|| format_args!("{}", String::from("Hello world")));
5    |                           ^^^^                             -- temporary value needs to live until here
6    |                           |                                |
7    |                           |                                temporary value dropped here while still borrowed
8    |                           temporary value does not live long enough
9
10 error[E0597]: borrowed value does not live long enough
11   --> $DIR/issue-27592.rs:16:33
12    |
13 LL |     write(|| format_args!("{}", String::from("Hello world")));
14    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^-- temporary value needs to live until here
15    |                                 |                          |
16    |                                 |                          temporary value dropped here while still borrowed
17    |                                 temporary value does not live long enough
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0597`.