]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/destructor-restrictions.nll.stderr
Allow the linker to choose the LTO-plugin (which is useful when using LLD)
[rust.git] / src / test / ui / span / destructor-restrictions.nll.stderr
1 error[E0597]: `*a` does not live long enough
2   --> $DIR/destructor-restrictions.rs:18:10
3    |
4 LL |         *a.borrow() + 1
5    |          ^---------
6    |          |
7    |          borrowed value does not live long enough
8    |          borrow may end up in a temporary, created here
9 LL |     }; //~^ ERROR `*a` does not live long enough
10    |     -- temporary later dropped here, potentially using the reference
11    |     |
12    |     borrowed value only lives until here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.