]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / regions / regions-bounded-method-type-parameters-trait-bound.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/regions-bounded-method-type-parameters-trait-bound.rs:30:7
3    |
4 LL | fn caller2<'a,'b,F:Foo<'a>>(a: Inv<'a>, b: Inv<'b>, f: F) {
5    |                                -------     ------- these two types are declared with different lifetimes...
6 LL |     // Here the value provided for 'y is 'b, and hence 'b:'a does not hold.
7 LL |     f.method(b); //~ ERROR 30:7: 30:13: lifetime mismatch [E0623]
8    |       ^^^^^^ ...but data from `b` flows into `a` here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0623`.