]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-region-bound.stderr
Rollup merge of #105872 - chenyukang:yukang/fix-105494-remove-method-call, r=eholk
[rust.git] / src / test / ui / static / static-region-bound.stderr
1 error[E0716]: temporary value dropped while borrowed
2   --> $DIR/static-region-bound.rs:10:14
3    |
4 LL |     let x = &id(3);
5    |              ^^^^^ creates a temporary value which is freed while still in use
6 LL |     f(x);
7    |     ---- argument requires that borrow lasts for `'static`
8 LL | }
9    | - temporary value is freed at the end of this statement
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0716`.