]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-infer-paramd-indirect.stderr
Merge branch 'debian/experimental2' into debian/experimental
[rustc.git] / src / test / ui / regions / regions-infer-paramd-indirect.stderr
1 error[E0308]: mismatched types
2 --> $DIR/regions-infer-paramd-indirect.rs:22:18
3 |
4 LL | self.f = b;
5 | ^ lifetime mismatch
6 |
7 = note: expected struct `Box<Box<&'a isize>>`
8 found struct `Box<Box<&isize>>`
9 note: the anonymous lifetime defined on the method body at 21:36...
10 --> $DIR/regions-infer-paramd-indirect.rs:21:36
11 |
12 LL | fn set_f_bad(&mut self, b: Box<B>) {
13 | ^
14 note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 16:6
15 --> $DIR/regions-infer-paramd-indirect.rs:16:6
16 |
17 LL | impl<'a> SetF<'a> for C<'a> {
18 | ^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.