Skip to content

Commit 31657c9

Browse files
committed
Updated tests after rebase.
1 parent 255ead5 commit 31657c9

11 files changed

+31
-30
lines changed

src/test/ui/lifetime-errors/ex2b-push-no-existing-names.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex2b-push-no-existing-names.rs:16:5
99
|
1010
LL | fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
11-
| -------- -------- lifetime `'1` appears in this type
12-
| |
13-
| lifetime `'2` appears in this type
11+
| - - has type `Ref<'1, i32>`
12+
| |
13+
| has type `&mut std::vec::Vec<Ref<'2, i32>>`
1414
LL | x.push(y); //~ ERROR lifetime mismatch
1515
| ^^^^^^^^^ argument requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-both-are-structs-2.rs:16:5
99
|
1010
LL | fn foo(mut x: Ref, y: Ref) {
11-
| --- --- lifetime `'1` appears in this type
12-
| |
13-
| lifetime `'2` appears in this type
11+
| ----- - has type `Ref<'_, '1>`
12+
| |
13+
| has type `Ref<'_, '2>`
1414
LL | x.b = y.b; //~ ERROR lifetime mismatch
1515
| ^^^^^^^^^ requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.nll.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-both-are-structs-3.rs:16:5
99
|
1010
LL | fn foo(mut x: Ref) {
11-
| ---
12-
| |
13-
| lifetime `'1` appears in this type
14-
| lifetime `'2` appears in this type
11+
| -----
12+
| |
13+
| has type `Ref<'_, '1>`
14+
| has type `Ref<'2, '_>`
1515
LL | x.a = x.b; //~ ERROR lifetime mismatch
1616
| ^^^^^^^^^ requires that `'1` must outlive `'2`
1717

src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs-4.nll.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-both-are-structs-4.rs:16:5
99
|
1010
LL | fn foo(mut x: Ref) {
11-
| ---
12-
| |
13-
| lifetime `'1` appears in this type
14-
| lifetime `'2` appears in this type
11+
| -----
12+
| |
13+
| has type `Ref<'_, '1>`
14+
| has type `Ref<'2, '_>`
1515
LL | x.a = x.b; //~ ERROR lifetime mismatch
1616
| ^^^^^^^^^ requires that `'1` must outlive `'2`
1717

src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-both-are-structs.rs:15:5
99
|
1010
LL | fn foo(mut x: Vec<Ref>, y: Ref) {
11-
| --- --- lifetime `'1` appears in this type
12-
| |
13-
| lifetime `'2` appears in this type
11+
| ----- - has type `Ref<'1>`
12+
| |
13+
| has type `std::vec::Vec<Ref<'2>>`
1414
LL | x.push(y); //~ ERROR lifetime mismatch
1515
| ^^^^^^^^^ argument requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-one-is-struct-2.rs:14:5
99
|
1010
LL | fn foo(mut x: Ref, y: &u32) {
11-
| --- - let's call the lifetime of this reference `'2`
12-
| |
13-
| lifetime `'1` appears in this type
11+
| ----- - let's call the lifetime of this reference `'2`
12+
| |
13+
| has type `Ref<'_, '1>`
1414
LL | y = x.b; //~ ERROR lifetime mismatch
1515
| ^^^^^^^ requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-one-is-struct-3.rs:14:5
99
|
1010
LL | fn foo(mut y: Ref, x: &u32) {
11-
| --- - let's call the lifetime of this reference `'1`
12-
| |
13-
| lifetime `'2` appears in this type
11+
| ----- - let's call the lifetime of this reference `'1`
12+
| |
13+
| has type `Ref<'_, '2>`
1414
LL | y.b = x; //~ ERROR lifetime mismatch
1515
| ^^^^^^^ requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-one-is-struct-4.rs:14:5
99
|
1010
LL | fn foo(mut y: Ref, x: &u32) {
11-
| --- - let's call the lifetime of this reference `'1`
12-
| |
13-
| lifetime `'2` appears in this type
11+
| ----- - let's call the lifetime of this reference `'1`
12+
| |
13+
| has type `Ref<'_, '2>`
1414
LL | y.b = x; //~ ERROR lifetime mismatch
1515
| ^^^^^^^ requires that `'1` must outlive `'2`
1616

src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ error: unsatisfied lifetime constraints
88
--> $DIR/ex3-both-anon-regions-one-is-struct.rs:17:5
99
|
1010
LL | fn foo(mut x: Ref, y: &u32) {
11-
| --- - let's call the lifetime of this reference `'1`
12-
| |
13-
| lifetime `'2` appears in this type
11+
| ----- - let's call the lifetime of this reference `'1`
12+
| |
13+
| has type `Ref<'_, '2>`
1414
LL | x.b = y; //~ ERROR lifetime mismatch
1515
| ^^^^^^^ requires that `'1` must outlive `'2`
1616

src/test/ui/nll/issue-52742.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#![feature(nll)]
1212
#![feature(in_band_lifetimes)]
13+
#![feature(impl_header_lifetime_elision)]
1314

1415
struct Foo<'a, 'b> {
1516
x: &'a u32,

src/test/ui/nll/issue-52742.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unsatisfied lifetime constraints
2-
--> $DIR/issue-52742.rs:25:9
2+
--> $DIR/issue-52742.rs:26:9
33
|
44
LL | fn take_bar(&mut self, b: Bar<'_>) {
55
| --------- -- let's call this `'1`

0 commit comments

Comments
 (0)