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