16 lines
628 B
Plaintext
16 lines
628 B
Plaintext
error[E0716]: temporary value dropped while borrowed
|
|
--> tests/ui/temporary-value.rs:4:22
|
|
|
|
|
4 | let _ = anyhow!(&String::new());
|
|
| ---------^^^^^^^^^^^^^-
|
|
| | |
|
|
| | creates a temporary value which is freed while still in use
|
|
| temporary value is freed at the end of this statement
|
|
| argument requires that borrow lasts for `'static`
|
|
|
|
|
note: requirement that the value outlives `'static` introduced here
|
|
--> src/kind.rs
|
|
|
|
|
| M: Display + Debug + Send + Sync + 'static,
|
|
| ^^^^^^^
|