-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
994dc4b
commit bd0895d
Showing
51 changed files
with
205 additions
and
174 deletions.
There are no files selected for viewing
15 changes: 8 additions & 7 deletions
15
src/test/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.nll.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/project-fn-ret-contravariant.rs:53:12 | ||
--> $DIR/project-fn-ret-contravariant.rs:55:4 | ||
| | ||
LL | fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) { | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
LL | let a = bar(foo, y); | ||
| ^^^^^^^^^^^ assignment requires that `'b` must outlive `'a` | ||
... | ||
LL | (a, b) //[krisskross]~ ERROR 55:5: 55:6: lifetime mismatch [E0623] | ||
| ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` | ||
|
||
error: unsatisfied lifetime constraints | ||
--> $DIR/project-fn-ret-contravariant.rs:54:12 | ||
--> $DIR/project-fn-ret-contravariant.rs:55:4 | ||
| | ||
LL | fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) { | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
LL | let a = bar(foo, y); | ||
LL | let b = bar(foo, x); | ||
| ^^^^^^^^^^^ assignment requires that `'a` must outlive `'b` | ||
... | ||
LL | (a, b) //[krisskross]~ ERROR 55:5: 55:6: lifetime mismatch [E0623] | ||
| ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.nll.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/project-fn-ret-invariant.rs:63:12 | ||
--> $DIR/project-fn-ret-invariant.rs:65:4 | ||
| | ||
LL | fn transmute<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) { | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
LL | let a = bar(foo, y); //[krisskross]~ ERROR E0623 | ||
| ^^^^^^^^^^^ assignment requires that `'b` must outlive `'a` | ||
... | ||
LL | (a, b) //[krisskross]~ ERROR E0623 | ||
| ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a` | ||
|
||
error: unsatisfied lifetime constraints | ||
--> $DIR/project-fn-ret-invariant.rs:64:12 | ||
--> $DIR/project-fn-ret-invariant.rs:65:4 | ||
| | ||
LL | fn transmute<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) { | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
LL | let a = bar(foo, y); //[krisskross]~ ERROR E0623 | ||
LL | let b = bar(foo, x); | ||
| ^^^^^^^^^^^ assignment requires that `'a` must outlive `'b` | ||
... | ||
LL | (a, b) //[krisskross]~ ERROR E0623 | ||
| ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/issue-10291.rs:12:5 | ||
--> $DIR/issue-10291.rs:12:65 | ||
| | ||
LL | fn test<'x>(x: &'x isize) { | ||
| -- lifetime `'x` defined here | ||
LL | drop::<Box<for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'x` must outlive `'static` | ||
LL | fn test<'x>(x: &'x isize) { | ||
| -- lifetime `'x` defined here | ||
LL | drop::<Box<for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| { | ||
| _________________________________________________________________^ | ||
LL | | x //~ ERROR E0312 | ||
LL | | })); | ||
| |_____^ closure body requires that `'x` must outlive `'static` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
error: borrowed data escapes outside of function | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/issue-50716.rs:25:14 | ||
| | ||
LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>) | ||
| - `s` is a reference that is only valid in the function body | ||
| -- lifetime `'a` defined here | ||
... | ||
LL | let _x = *s; //~ ERROR | ||
| ^^ `s` escapes the function body here | ||
| ^^ proving this value is `Sized` requires that `'a` must outlive `'static` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/issue-52113.rs:43:9 | ||
--> $DIR/issue-52113.rs:47:5 | ||
| | ||
LL | fn produce_err<'a, 'b: 'a>(data: &'b mut Vec<&'b u32>, value: &'a u32) -> impl Bazinga + 'b { | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
LL | let x = move || { //~ ERROR unsatisfied lifetime constraints | ||
| ^ requires that `'a` must outlive `'b` | ||
... | ||
LL | x //~ ERROR unsatisfied lifetime constraints | ||
| ^ returning this value requires that `'a` must outlive `'b` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.