fork/rust

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

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

master
623 B17 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-free-region-ordering-incorrect.rs:15:9
3   |
4LL |   impl<'b, T> Node<'b, T> {
5   |        -- lifetime `'b` defined here
6LL |       fn get<'a>(&'a self) -> &'b T {
7   |              -- lifetime `'a` defined here
8LL | /         match self.next {
9LL | |             Some(ref next) => next.get(),
10LL | |             None => &self.val
11LL | |         }
12   | |_________^ method was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
13   |
14   = help: consider adding the following bound: `'a: 'b`
15
16error: aborting due to previous error
17