]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0478.stderr
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
[rust.git] / src / test / ui / error-codes / E0478.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/E0478.rs:4:12
3    |
4 LL |     child: Box<dyn Wedding<'kiss> + 'SnowWhite>,
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lifetime parameter instantiated with the lifetime `'SnowWhite` as defined here
8   --> $DIR/E0478.rs:3:22
9    |
10 LL | struct Prince<'kiss, 'SnowWhite> {
11    |                      ^^^^^^^^^^
12 note: but lifetime parameter must outlive the lifetime `'kiss` as defined here
13   --> $DIR/E0478.rs:3:15
14    |
15 LL | struct Prince<'kiss, 'SnowWhite> {
16    |               ^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0478`.