]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27592.nll.stderr
Fix a few tests with target-specific output
[rust.git] / src / test / ui / issues / issue-27592.nll.stderr
1 error[E0716]: temporary value dropped while borrowed
2   --> $DIR/issue-27592.rs:26:27
3    |
4 LL |     write(|| format_args!("{}", String::from("Hello world")));
5    |                           ^^^^                             - temporary value is freed at the end of this statement
6    |                           |
7    |                           creates a temporary which is freed while still in use
8
9 error[E0716]: temporary value dropped while borrowed
10   --> $DIR/issue-27592.rs:26:33
11    |
12 LL |     write(|| format_args!("{}", String::from("Hello world")));
13    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement
14    |                                 |
15    |                                 creates a temporary which is freed while still in use
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0716`.