diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-23 03:42:32 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-26 20:24:02 +0300 |
| commit | fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch) | |
| tree | 1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/union | |
| parent | cdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff) | |
| download | rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip | |
Update UI tests
Diffstat (limited to 'src/test/ui/union')
| -rw-r--r-- | src/test/ui/union/union-const-eval.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/union/union-derive-eq.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/union/union-fields-1.stderr | 10 | ||||
| -rw-r--r-- | src/test/ui/union/union-fields-2.stderr | 24 | ||||
| -rw-r--r-- | src/test/ui/union/union-sized-field.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/union/union-suggest-field.stderr | 4 |
6 files changed, 25 insertions, 25 deletions
diff --git a/src/test/ui/union/union-const-eval.stderr b/src/test/ui/union/union-const-eval.stderr index cee947d73a2..afd661337c6 100644 --- a/src/test/ui/union/union-const-eval.stderr +++ b/src/test/ui/union/union-const-eval.stderr @@ -1,7 +1,7 @@ warning: constant evaluation error: nonexistent struct field --> $DIR/union-const-eval.rs:21:21 | -21 | let b: [u8; C.b]; //~ ERROR constant evaluation error +LL | let b: [u8; C.b]; //~ ERROR constant evaluation error | ^^^ | = note: #[warn(const_err)] on by default @@ -9,7 +9,7 @@ warning: constant evaluation error: nonexistent struct field error[E0080]: constant evaluation error --> $DIR/union-const-eval.rs:21:21 | -21 | let b: [u8; C.b]; //~ ERROR constant evaluation error +LL | let b: [u8; C.b]; //~ ERROR constant evaluation error | ^^^ nonexistent struct field error: aborting due to previous error diff --git a/src/test/ui/union/union-derive-eq.stderr b/src/test/ui/union/union-derive-eq.stderr index 8d49a1febbe..88b33c3e96e 100644 --- a/src/test/ui/union/union-derive-eq.stderr +++ b/src/test/ui/union/union-derive-eq.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `PartialEqNotEq: std::cmp::Eq` is not satisfied --> $DIR/union-derive-eq.rs:25:5 | -25 | a: PartialEqNotEq, //~ ERROR the trait bound `PartialEqNotEq: std::cmp::Eq` is not satisfied +LL | a: PartialEqNotEq, //~ ERROR the trait bound `PartialEqNotEq: std::cmp::Eq` is not satisfied | ^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `PartialEqNotEq` | = note: required by `std::cmp::AssertParamIsEq` diff --git a/src/test/ui/union/union-fields-1.stderr b/src/test/ui/union/union-fields-1.stderr index 5204a13f6f2..e337ea9d7ee 100644 --- a/src/test/ui/union/union-fields-1.stderr +++ b/src/test/ui/union/union-fields-1.stderr @@ -1,31 +1,31 @@ error: field is never used: `c` --> $DIR/union-fields-1.rs:16:5 | -16 | c: u8, //~ ERROR field is never used +LL | c: u8, //~ ERROR field is never used | ^^^^^ | note: lint level defined here --> $DIR/union-fields-1.rs:11:9 | -11 | #![deny(dead_code)] +LL | #![deny(dead_code)] | ^^^^^^^^^ error: field is never used: `a` --> $DIR/union-fields-1.rs:19:5 | -19 | a: u8, //~ ERROR field is never used +LL | a: u8, //~ ERROR field is never used | ^^^^^ error: field is never used: `a` --> $DIR/union-fields-1.rs:23:20 | -23 | union NoDropLike { a: u8 } //~ ERROR field is never used +LL | union NoDropLike { a: u8 } //~ ERROR field is never used | ^^^^^ error: field is never used: `c` --> $DIR/union-fields-1.rs:28:5 | -28 | c: u8, //~ ERROR field is never used +LL | c: u8, //~ ERROR field is never used | ^^^^^ error: aborting due to 4 previous errors diff --git a/src/test/ui/union/union-fields-2.stderr b/src/test/ui/union/union-fields-2.stderr index f5f5c4fab2b..324fdc7345d 100644 --- a/src/test/ui/union/union-fields-2.stderr +++ b/src/test/ui/union/union-fields-2.stderr @@ -1,13 +1,13 @@ error: union expressions should have exactly one field --> $DIR/union-fields-2.rs:17:13 | -17 | let u = U {}; //~ ERROR union expressions should have exactly one field +LL | let u = U {}; //~ ERROR union expressions should have exactly one field | ^ error: union expressions should have exactly one field --> $DIR/union-fields-2.rs:19:13 | -19 | let u = U { a: 0, b: 1 }; //~ ERROR union expressions should have exactly one field +LL | let u = U { a: 0, b: 1 }; //~ ERROR union expressions should have exactly one field | ^ error[E0560]: union `U` has no field named `c` @@ -21,61 +21,61 @@ error[E0560]: union `U` has no field named `c` error: union expressions should have exactly one field --> $DIR/union-fields-2.rs:20:13 | -20 | let u = U { a: 0, b: 1, c: 2 }; //~ ERROR union expressions should have exactly one field +LL | let u = U { a: 0, b: 1, c: 2 }; //~ ERROR union expressions should have exactly one field | ^ error: union expressions should have exactly one field --> $DIR/union-fields-2.rs:22:13 | -22 | let u = U { ..u }; //~ ERROR union expressions should have exactly one field +LL | let u = U { ..u }; //~ ERROR union expressions should have exactly one field | ^ error[E0436]: functional record update syntax requires a struct --> $DIR/union-fields-2.rs:22:19 | -22 | let u = U { ..u }; //~ ERROR union expressions should have exactly one field +LL | let u = U { ..u }; //~ ERROR union expressions should have exactly one field | ^ error: union patterns should have exactly one field --> $DIR/union-fields-2.rs:25:9 | -25 | let U {} = u; //~ ERROR union patterns should have exactly one field +LL | let U {} = u; //~ ERROR union patterns should have exactly one field | ^^^^ error: union patterns should have exactly one field --> $DIR/union-fields-2.rs:27:9 | -27 | let U { a, b } = u; //~ ERROR union patterns should have exactly one field +LL | let U { a, b } = u; //~ ERROR union patterns should have exactly one field | ^^^^^^^^^^ error[E0026]: union `U` does not have a field named `c` --> $DIR/union-fields-2.rs:28:19 | -28 | let U { a, b, c } = u; //~ ERROR union patterns should have exactly one field +LL | let U { a, b, c } = u; //~ ERROR union patterns should have exactly one field | ^ union `U` does not have field `c` error: union patterns should have exactly one field --> $DIR/union-fields-2.rs:28:9 | -28 | let U { a, b, c } = u; //~ ERROR union patterns should have exactly one field +LL | let U { a, b, c } = u; //~ ERROR union patterns should have exactly one field | ^^^^^^^^^^^^^ error: union patterns should have exactly one field --> $DIR/union-fields-2.rs:30:9 | -30 | let U { .. } = u; //~ ERROR union patterns should have exactly one field +LL | let U { .. } = u; //~ ERROR union patterns should have exactly one field | ^^^^^^^^ error: `..` cannot be used in union patterns --> $DIR/union-fields-2.rs:30:9 | -30 | let U { .. } = u; //~ ERROR union patterns should have exactly one field +LL | let U { .. } = u; //~ ERROR union patterns should have exactly one field | ^^^^^^^^ error: `..` cannot be used in union patterns --> $DIR/union-fields-2.rs:32:9 | -32 | let U { a, .. } = u; //~ ERROR `..` cannot be used in union patterns +LL | let U { a, .. } = u; //~ ERROR `..` cannot be used in union patterns | ^^^^^^^^^^^ error: aborting due to 13 previous errors diff --git a/src/test/ui/union/union-sized-field.stderr b/src/test/ui/union/union-sized-field.stderr index e799d8cb518..4f2d00aaa3e 100644 --- a/src/test/ui/union/union-sized-field.stderr +++ b/src/test/ui/union/union-sized-field.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied --> $DIR/union-sized-field.rs:14:5 | -14 | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied +LL | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied | ^^^^^^^^ `T` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `T` @@ -11,7 +11,7 @@ error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied --> $DIR/union-sized-field.rs:18:5 | -18 | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied +LL | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied | ^^^^^^^^ `T` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `T` @@ -21,7 +21,7 @@ error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied --> $DIR/union-sized-field.rs:23:11 | -23 | Value(T), //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied +LL | Value(T), //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied | ^^ `T` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `T` diff --git a/src/test/ui/union/union-suggest-field.stderr b/src/test/ui/union/union-suggest-field.stderr index a2733a69483..9162dd1920f 100644 --- a/src/test/ui/union/union-suggest-field.stderr +++ b/src/test/ui/union/union-suggest-field.stderr @@ -7,13 +7,13 @@ error[E0560]: union `U` has no field named `principle` error[E0609]: no field `principial` on type `U` --> $DIR/union-suggest-field.rs:22:15 | -22 | let w = u.principial; //~ ERROR no field `principial` on type `U` +LL | let w = u.principial; //~ ERROR no field `principial` on type `U` | ^^^^^^^^^^ did you mean `principal`? error[E0615]: attempted to take value of method `calculate` on type `U` --> $DIR/union-suggest-field.rs:25:15 | -25 | let y = u.calculate; //~ ERROR attempted to take value of method `calculate` on type `U` +LL | let y = u.calculate; //~ ERROR attempted to take value of method `calculate` on type `U` | ^^^^^^^^^ | = help: maybe a `()` to call it is missing? |
