]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-type-bounds/implied-region-constraints.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / associated-type-bounds / implied-region-constraints.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/implied-region-constraints.rs:17:64
3    |
4 LL | fn _bad_st<'a, 'b, T>(x: St<'a, 'b, T>)
5    |                          ------------- this type is declared with multiple lifetimes...
6 ...
7 LL |     let _failure_proves_not_implied_outlives_region_b: &'b T = &x.f0;
8    |                                                                ^^^^^ ...but data with one lifetime flows into the other here
9
10 error[E0623]: lifetime mismatch
11   --> $DIR/implied-region-constraints.rs:38:72
12    |
13 LL | fn _bad_en7<'a, 'b, T>(x: En7<'a, 'b, T>)
14    |                           -------------- this type is declared with multiple lifetimes...
15 ...
16 LL |             let _failure_proves_not_implied_outlives_region_b: &'b T = &x;
17    |                                                                        ^^ ...but data with one lifetime flows into the other here
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0623`.