fork/rust

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

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

master
475 B15 linesraw
1error[E0621]: explicit lifetime required in the type of `foo`
2  --> $DIR/issue-63388-1.rs:13:5
3   |
4LL |           &'a self, foo: &dyn Foo
5   |                          -------- help: add explicit lifetime `'a` to the type of `foo`: `&'a (dyn Foo + 'a)`
6LL |       ) -> &dyn Foo
7LL | /     {
8LL | |
9LL | |         foo
10LL | |     }
11   | |_____^ lifetime `'a` required
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0621`.