diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2018-09-15 18:30:29 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2018-09-19 20:50:09 +0100 |
| commit | bd0895d7d011cc4c6bef4f95e6df64d2fee6ff73 (patch) | |
| tree | 146b8e71049cc840d5a99f42d9f96da9882f53da /src/test/ui/lifetimes/lifetime-errors | |
| parent | 994dc4bd1ef01b45408750679d9ec46bc1c2ff33 (diff) | |
| download | rust-bd0895d7d011cc4c6bef4f95e6df64d2fee6ff73.tar.gz rust-bd0895d7d011cc4c6bef4f95e6df64d2fee6ff73.zip | |
Update ui tests
Diffstat (limited to 'src/test/ui/lifetimes/lifetime-errors')
8 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.nll.stderr index 017c3e97747..e4aafd7b66e 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(&mut (ref mut v, w): &mut (&u8, &u8), x: &u8) { | | | let's call the lifetime of this reference `'2` LL | *v = x; //~ ERROR lifetime mismatch - | ^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr index b8e1b483081..934cdcd2ef2 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(mut x: Ref, y: Ref) { | | | has type `Ref<'_, '2>` LL | x.b = y.b; //~ ERROR lifetime mismatch - | ^^^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.nll.stderr index 4b7352fe224..cbfd9d47809 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.nll.stderr @@ -7,7 +7,7 @@ LL | fn foo(mut x: Ref) { | has type `Ref<'_, '1>` | has type `Ref<'2, '_>` LL | x.a = x.b; //~ ERROR lifetime mismatch - | ^^^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-4.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-4.nll.stderr index 53a2fef4806..4f0efe24cf7 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-4.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-4.nll.stderr @@ -7,7 +7,7 @@ LL | fn foo(mut x: Ref) { | has type `Ref<'_, '1>` | has type `Ref<'2, '_>` LL | x.a = x.b; //~ ERROR lifetime mismatch - | ^^^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.nll.stderr index 1a5f788e143..fc1fab7aab5 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(mut x: Ref, y: &u32) { | | | has type `Ref<'_, '1>` LL | y = x.b; //~ ERROR lifetime mismatch - | ^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^ assignment requires that `'1` must outlive `'2` error[E0384]: cannot assign to immutable argument `y` --> $DIR/ex3-both-anon-regions-one-is-struct-2.rs:14:5 diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.nll.stderr index d098354d983..8100fa89c2d 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(mut y: Ref, x: &u32) { | | | has type `Ref<'_, '2>` LL | y.b = x; //~ ERROR lifetime mismatch - | ^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.nll.stderr index 17a70aa85be..1c4a8b66589 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(mut y: Ref, x: &u32) { | | | has type `Ref<'_, '2>` LL | y.b = x; //~ ERROR lifetime mismatch - | ^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.nll.stderr index 2ebdedddc50..2a4c5a685f1 100644 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.nll.stderr @@ -6,7 +6,7 @@ LL | fn foo(mut x: Ref, y: &u32) { | | | has type `Ref<'_, '2>` LL | x.b = y; //~ ERROR lifetime mismatch - | ^^^^^^^ requires that `'1` must outlive `'2` + | ^^^^^^^ assignment requires that `'1` must outlive `'2` error: aborting due to previous error |
