]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.stderr
Update tests
[rust.git] / src / test / ui / impl-trait / multiple-lifetimes / ordinary-bounds-unrelated.stderr
1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2   --> $DIR/ordinary-bounds-unrelated.rs:18:74
3    |
4 LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
5    |                                                                          ^^^^^^^^^^^^^^^^^^
6    |
7 note: hidden type `Ordinary<'_>` captures lifetime smaller than the function body
8   --> $DIR/ordinary-bounds-unrelated.rs:18:74
9    |
10 LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
11    |                                                                          ^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0700`.