fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
525 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/unique-borrows-are-invariant-2.rs:15:17
3   |
4LL | impl<'b> Spooky<'b> {
5   |      -- lifetime `'b` defined here
6LL |     fn create_self_reference<'a>(&'a mut self) {
7   |                              -- lifetime `'a` defined here
8...
9LL |                 self.borrowed = borrow;
10   |                 ^^^^^^^^^^^^^^^^^^^^^^ assignment requires that `'a` must outlive `'b`
11   |
12   = help: consider adding the following bound: `'a: 'b`
13
14error: aborting due to previous error
15