]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-infer-paramd-indirect.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / regions / regions-infer-paramd-indirect.stderr
1 error[E0308]: mismatched types
2 --> $DIR/regions-infer-paramd-indirect.rs:33:18
3 |
4 LL | self.f = b;
5 | ^ lifetime mismatch
6 |
7 = note: expected type `std::boxed::Box<std::boxed::Box<&'a isize>>`
8 found type `std::boxed::Box<std::boxed::Box<&isize>>`
9 note: the anonymous lifetime #2 defined on the method body at 32:5...
10 --> $DIR/regions-infer-paramd-indirect.rs:32:5
11 |
12 LL | / fn set_f_bad(&mut self, b: Box<b>) {
13 LL | | self.f = b;
14 LL | | //~^ ERROR mismatched types
15 LL | | //~| expected type `std::boxed::Box<std::boxed::Box<&'a isize>>`
16 LL | | //~| found type `std::boxed::Box<std::boxed::Box<&isize>>`
17 LL | | //~| lifetime mismatch
18 LL | | }
19 | |_____^
20 note: ...does not necessarily outlive the lifetime 'a as defined on the impl at 27:6
21 --> $DIR/regions-infer-paramd-indirect.rs:27:6
22 |
23 LL | impl<'a> set_f<'a> for c<'a> {
24 | ^^
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0308`.