]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16683.stderr
Rollup merge of #104059 - Rejyr:rustc_middle-lint-typo, r=petrochenkov
[rust.git] / src / test / ui / issues / issue-16683.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-16683.rs:4:9
3    |
4 LL | trait T<'a> {
5    |         -- lifetime `'a` defined here
6 LL |     fn a(&'a self) -> &'a bool;
7 LL |     fn b(&self) {
8    |          - let's call the lifetime of this reference `'1`
9 LL |         self.a();
10    |         ^^^^^^^^ argument requires that `'1` must outlive `'a`
11
12 error: aborting due to previous error
13