]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-fn-body.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:22:40
3    |
4 LL |     x: <I as Foo<&'a isize>>::A,
5    |                  --------- these two types are declared with different lifetimes...
6 LL |     y: <I as Foo<&'b isize>>::A,
7    |                  ---------
8 ...
9 LL |     let z: I::A = if cond { x } else { y };
10    |                                        ^ ...but data from `x` flows into `y` here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0623`.