]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/region-bounds-on-objects-and-type-parameters.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / regions / region-bounds-on-objects-and-type-parameters.stderr
CommitLineData
b7449926 1error[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
4LL | z: Box<dyn Is<'a>+'b+'c>,
5 | ^^
b7449926
XL
6
7error[E0478]: lifetime bound not satisfied
3dfed10e 8 --> $DIR/region-bounds-on-objects-and-type-parameters.rs:21:8
b7449926 9 |
dc9dc135 10LL | z: Box<dyn Is<'a>+'b+'c>,
3dfed10e 11 | ^^^^^^^^^^^^^^^^^^^^^
b7449926 12 |
e74abb32 13note: 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 16LL | struct Foo<'a,'b,'c> {
b7449926 17 | ^^
e74abb32 18note: 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 21LL | struct Foo<'a,'b,'c> {
b7449926
XL
22 | ^^
23
24error[E0392]: parameter `'c` is never used
0731742a 25 --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:18
b7449926 26 |
532ac7d7 27LL | 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
32error: aborting due to 3 previous errors
33
ba9703b0
XL
34Some errors have detailed explanations: E0226, E0392, E0478.
35For more information about an error, try `rustc --explain E0226`.