fix nll test stderr
This commit is contained in:
parent
d19c46870f
commit
404cc33eda
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ error[E0597]: `self` does not live long enough
|
||||||
LL | let _f = || {
|
LL | let _f = || {
|
||||||
| -- value captured here
|
| -- value captured here
|
||||||
LL | let p: &'static mut usize = &mut self.food;
|
LL | let p: &'static mut usize = &mut self.food;
|
||||||
| ------------------ ^^^^ borrowed value does not live long enough
|
| ------------------ ^^^^^^^^^ borrowed value does not live long enough
|
||||||
| |
|
| |
|
||||||
| type annotation requires that `self` is borrowed for `'static`
|
| type annotation requires that `self` is borrowed for `'static`
|
||||||
...
|
...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue