]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/region-bounds-on-objects-and-type-parameters.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[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:22
3    |
4 LL |     z: Box<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<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> { //~ ERROR parameter `'c` is never used
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> { //~ ERROR parameter `'c` is never used
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> { //~ ERROR parameter `'c` is never used
28    |                  ^^ unused type parameter
29    |
30    = help: consider removing `'c` or using a marker such as `std::marker::PhantomData`
31
32 error: aborting due to 3 previous errors
33
34 Some errors occurred: E0226, E0392, E0478.
35 For more information about an error, try `rustc --explain E0226`.