diff options
| author | varkor <github@varkor.com> | 2019-09-06 19:21:26 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-06 19:21:26 +0100 |
| commit | 0b97726e6c524d2cc0de4c2f5b1284eca010a7b2 (patch) | |
| tree | 7f5c3176ab32e176feb58d6f5a018cb1c425559a | |
| parent | f6481ed1c31d2a3c43fab73e58901f7c25360fcb (diff) | |
| download | rust-0b97726e6c524d2cc0de4c2f5b1284eca010a7b2.tar.gz rust-0b97726e6c524d2cc0de4c2f5b1284eca010a7b2.zip | |
Update ui tests
| -rw-r--r-- | src/test/ui/coercion/coercion-slice.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/coercion/coercion-slice.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-15783.rs | 8 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-15783.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/match/match-vec-mismatch.stderr | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/coercion/coercion-slice.rs b/src/test/ui/coercion/coercion-slice.rs index 312b634c9fd..b69edcf2606 100644 --- a/src/test/ui/coercion/coercion-slice.rs +++ b/src/test/ui/coercion/coercion-slice.rs @@ -4,5 +4,5 @@ fn main() { let _: &[i32] = [0]; //~^ ERROR mismatched types //~| expected type `&[i32]` - //~| expected &[i32], found array of 1 elements + //~| expected &[i32], found array of 1 element } diff --git a/src/test/ui/coercion/coercion-slice.stderr b/src/test/ui/coercion/coercion-slice.stderr index 6fa71237117..ccd776e9879 100644 --- a/src/test/ui/coercion/coercion-slice.stderr +++ b/src/test/ui/coercion/coercion-slice.stderr @@ -4,7 +4,7 @@ error[E0308]: mismatched types LL | let _: &[i32] = [0]; | ^^^ | | - | expected &[i32], found array of 1 elements + | expected &[i32], found array of 1 element | help: consider borrowing here: `&[0]` | = note: expected type `&[i32]` diff --git a/src/test/ui/issues/issue-15783.rs b/src/test/ui/issues/issue-15783.rs index 77eae914fa1..5189f550cfb 100644 --- a/src/test/ui/issues/issue-15783.rs +++ b/src/test/ui/issues/issue-15783.rs @@ -6,9 +6,9 @@ fn main() { let name = "Foo"; let x = Some(&[name]); let msg = foo(x); -//~^ ERROR mismatched types -//~| expected type `std::option::Option<&[&str]>` -//~| found type `std::option::Option<&[&str; 1]>` -//~| expected slice, found array of 1 elements + //~^ ERROR mismatched types + //~| expected type `std::option::Option<&[&str]>` + //~| found type `std::option::Option<&[&str; 1]>` + //~| expected slice, found array of 1 element assert_eq!(msg, 3); } diff --git a/src/test/ui/issues/issue-15783.stderr b/src/test/ui/issues/issue-15783.stderr index 595fe4025ad..1d54b2830d6 100644 --- a/src/test/ui/issues/issue-15783.stderr +++ b/src/test/ui/issues/issue-15783.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> $DIR/issue-15783.rs:8:19 | LL | let msg = foo(x); - | ^ expected slice, found array of 1 elements + | ^ expected slice, found array of 1 element | = note: expected type `std::option::Option<&[&str]>` found type `std::option::Option<&[&str; 1]>` diff --git a/src/test/ui/match/match-vec-mismatch.stderr b/src/test/ui/match/match-vec-mismatch.stderr index 2f1bbb76216..a3523bb689e 100644 --- a/src/test/ui/match/match-vec-mismatch.stderr +++ b/src/test/ui/match/match-vec-mismatch.stderr @@ -10,7 +10,7 @@ error[E0529]: expected an array or slice, found `std::string::String` LL | ['f', 'o', ..] => {} | ^^^^^^^^^^^^^^ pattern cannot match with input type `std::string::String` -error[E0527]: pattern requires 1 elements but array has 3 +error[E0527]: pattern requires 1 element but array has 3 --> $DIR/match-vec-mismatch.rs:20:9 | LL | [0] => {}, |
