]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17758.nll.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-17758.nll.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