]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/region-bounds-on-objects-and-type-parameters.stderr
Rollup merge of #65056 - spastorino:place-mut-visitor-adjusts, r=oli-obk
[rust.git] / src / test / ui / regions / region-bounds-on-objects-and-type-parameters.stderr
1 error[E0226]: only a single explicit lifetime bound is permitted
2   --> $DIR/region-bounds-on-objects-and-type-parameters.rs:21:26
3    |
4 LL |     z: Box<dyn Is<'a>+'b+'c>,
5    |                          ^^
6
7 error[E0478]: lifetime bound not satisfied
8   --> $DIR/region-bounds-on-objects-and-type-parameters.rs:21:5
9    |
10 LL |     z: Box<dyn Is<'a>+'b+'c>,
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^
12    |
13 note: lifetime parameter instantiated with the lifetime 'b as defined on the struct at 11:15
14   --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:15
15    |
16 LL | struct Foo<'a,'b,'c> {
17    |               ^^
18 note: but lifetime parameter must outlive the lifetime 'a as defined on the struct at 11:12
19   --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:12
20    |
21 LL | struct Foo<'a,'b,'c> {
22    |            ^^
23
24 error[E0392]: parameter `'c` is never used
25   --> $DIR/region-bounds-on-objects-and-type-parameters.rs:11:18
26    |
27 LL | struct Foo<'a,'b,'c> {
28    |                  ^^ unused parameter
29    |
30    = help: consider removing `'c`, refering to it in a field, or using a marker such as `std::marker::PhantomData`
31
32 error: aborting due to 3 previous errors
33
34 Some errors have detailed explanations: E0392, E0478.
35 For more information about an error, try `rustc --explain E0392`.