fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0478]: lifetime bound not satisfied 2 --> $DIR/E0478.rs:4:5 3 | 4LL | child: Box<dyn Wedding<'kiss> + 'SnowWhite>, 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7note: lifetime parameter instantiated with the lifetime `'SnowWhite` as defined on the struct at 3:22 8 --> $DIR/E0478.rs:3:22 9 | 10LL | struct Prince<'kiss, 'SnowWhite> { 11 | ^^^^^^^^^^ 12note: but lifetime parameter must outlive the lifetime `'kiss` as defined on the struct at 3:15 13 --> $DIR/E0478.rs:3:15 14 | 15LL | struct Prince<'kiss, 'SnowWhite> { 16 | ^^^^^ 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0478`.