]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17758.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / issues / issue-17758.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-17758.rs:7:9
3    |
4 LL | trait Foo<'a> {
5    |           -- lifetime `'a` defined here
6 LL |     fn foo(&'a self);
7 LL |     fn bar(&self) {
8    |            - let's call the lifetime of this reference `'1`
9 LL |         self.foo();
10    |         ^^^^^^^^^^ argument requires that `'1` must outlive `'a`
11
12 error: aborting due to previous error
13