1
Fork 0

fix nll test stderr

This commit is contained in:
Chris Pardy 2021-05-02 04:01:45 -04:00
parent d19c46870f
commit 404cc33eda

View file

@ -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`
... ...