]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52742.stderr
move interface to the unikernel in the crate hermit-abi
[rust.git] / src / test / ui / nll / issue-52742.stderr
1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2   --> $DIR/issue-52742.rs:14:18
3    |
4 LL |         self.y = b.z
5    |                  ^^^
6    |
7 note: ...the reference is valid for the lifetime '_ as defined on the impl at 12:10...
8   --> $DIR/issue-52742.rs:12:10
9    |
10 LL | impl Foo<'_, '_> {
11    |          ^^
12 note: ...but the borrowed content is only valid for the anonymous lifetime #2 defined on the method body at 13:5
13   --> $DIR/issue-52742.rs:13:5
14    |
15 LL | /     fn take_bar(&mut self, b: Bar<'_>) {
16 LL | |         self.y = b.z
17 LL | |
18 LL | |     }
19    | |_____^
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0312`.