bless trivial polonius diagnostics changes
This commit is contained in:
parent
1392842966
commit
f23d18b976
@ -1,5 +1,5 @@
|
||||
error: lifetime may not live long enough
|
||||
--> $DIR/error-handling.rs:23:16
|
||||
--> $DIR/error-handling.rs:22:16
|
||||
|
|
||||
LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
|
||||
| -- -- lifetime `'b` defined here
|
||||
|
@ -121,3 +121,4 @@ LL | Bar2::new(&self)
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0521`.
|
||||
|
@ -21,7 +21,7 @@ error: lifetime may not live long enough
|
||||
--> $DIR/closure-substs.rs:15:16
|
||||
|
|
||||
LL | |x: &i32| -> &'static i32 {
|
||||
| - ------------ return type of closure is &'2 i32
|
||||
| - - let's call the lifetime of this reference `'2`
|
||||
| |
|
||||
| let's call the lifetime of this reference `'1`
|
||||
LL | return x;
|
||||
@ -58,3 +58,4 @@ LL | b(x);
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0521`.
|
||||
|
Loading…
Reference in New Issue
Block a user