diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2019-11-17 17:48:45 +0000 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2019-11-17 17:59:37 +0000 |
| commit | daa117eab715f38d08facfb826b04116bc9fe0b7 (patch) | |
| tree | 2f3f9fad5459e741392a3d246ac064b7efecf0bd /src/test/ui/pattern/usefulness | |
| parent | 54e97e889b97aa04d477329e26299a1bbc6fefe2 (diff) | |
| download | rust-daa117eab715f38d08facfb826b04116bc9fe0b7.tar.gz rust-daa117eab715f38d08facfb826b04116bc9fe0b7.zip | |
Small improvement to exhaustiveness diagnostics
Diffstat (limited to 'src/test/ui/pattern/usefulness')
| -rw-r--r-- | src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs b/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs index 5881c35d356..eb3dfac950f 100644 --- a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs +++ b/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs @@ -12,11 +12,11 @@ fn main() { [true, .., true] => {} } match s3 { - //~^ ERROR `&[false, .., _]` not covered + //~^ ERROR `&[false, ..]` not covered [true, .., true] => {} } match s10 { - //~^ ERROR `&[false, .., _]` not covered + //~^ ERROR `&[false, ..]` not covered [true, .., true] => {} } diff --git a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr b/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr index 9a711f2a441..ebadedccfea 100644 --- a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr +++ b/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr @@ -6,19 +6,19 @@ LL | match s2 { | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms -error[E0004]: non-exhaustive patterns: `&[false, .., _]` not covered +error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered --> $DIR/slice-patterns-exhaustiveness.rs:14:11 | LL | match s3 { - | ^^ pattern `&[false, .., _]` not covered + | ^^ pattern `&[false, ..]` not covered | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms -error[E0004]: non-exhaustive patterns: `&[false, .., _]` not covered +error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered --> $DIR/slice-patterns-exhaustiveness.rs:18:11 | LL | match s10 { - | ^^^ pattern `&[false, .., _]` not covered + | ^^^ pattern `&[false, ..]` not covered | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
