-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reblessed tests with NLL compare mode on.
- Loading branch information
Alexander Regueiro
committed
Jun 6, 2019
1 parent
e37a7a1
commit ee89033
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/test/ui/associated-type-bounds/implied-region-constraints.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
error: lifetime may not live long enough | ||
--> $DIR/implied-region-constraints.rs:19:56 | ||
| | ||
LL | fn _bad_st<'a, 'b, T>(x: St<'a, 'b, T>) | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
... | ||
LL | let _failure_proves_not_implied_outlives_region_b: &'b T = &x.f0; | ||
| ^^^^^ type annotation requires that `'a` must outlive `'b` | ||
|
||
error: lifetime may not live long enough | ||
--> $DIR/implied-region-constraints.rs:40:64 | ||
| | ||
LL | fn _bad_en7<'a, 'b, T>(x: En7<'a, 'b, T>) | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
... | ||
LL | let _failure_proves_not_implied_outlives_region_b: &'b T = &x; | ||
| ^^^^^ type annotation requires that `'a` must outlive `'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