]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0226]: only a single explicit lifetime bound is permitted |
dc9dc135 | 2 | --> $DIR/region-bounds-on-objects-and-type-parameters.rs:21:26 |
b7449926 | 3 | | |
dc9dc135 XL |
4 | LL | z: Box<dyn Is<'a>+'b+'c>, |
5 | | ^^ | |
b7449926 XL |
6 | |
7 | error[E0478]: lifetime bound not satisfied | |
3dfed10e | 8 | --> $DIR/region-bounds-on-objects-and-type-parameters.rs:21:8 |
b7449926 | 9 | | |
dc9dc135 | 10 | LL | z: Box<dyn Is<'a>+'b+'c>, |
3dfed10e | 11 | | ^^^^^^^^^^^^^^^^^^^^^ |
b7449926 | 12 | | |
e74abb32 | 13 | note: lifetime parameter instantiated with the lifetime `'b` as defined on the struct at 11:15 |
0731742a | 14 | --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:15 |
b7449926 | 15 | | |
532ac7d7 | 16 | LL | struct Foo<'a,'b,'c> { |
b7449926 | 17 | | ^^ |
e74abb32 | 18 | note: but lifetime parameter must outlive the lifetime `'a` as defined on the struct at 11:12 |
0731742a | 19 | --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:12 |
b7449926 | 20 | | |
532ac7d7 | 21 | LL | struct Foo<'a,'b,'c> { |
b7449926 XL |
22 | | ^^ |
23 | ||
24 | error[E0392]: parameter `'c` is never used | |
0731742a | 25 | --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:18 |
b7449926 | 26 | | |
532ac7d7 | 27 | LL | struct Foo<'a,'b,'c> { |
48663c56 | 28 | | ^^ unused parameter |
b7449926 | 29 | | |
1b1a35ee | 30 | = help: consider removing `'c`, referring to it in a field, or using a marker such as `PhantomData` |
b7449926 XL |
31 | |
32 | error: aborting due to 3 previous errors | |
33 | ||
ba9703b0 XL |
34 | Some errors have detailed explanations: E0226, E0392, E0478. |
35 | For more information about an error, try `rustc --explain E0226`. |