about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-11-04 03:06:01 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-11-04 03:09:47 +0300
commit765076faabcceba7cc75ae78c4923f89bb34975b (patch)
tree6ff01ab406ae5361152375ec64701e698a77d7e3 /src/test
parent33867579238ea94a1d22d1da344d6e484cacd9da (diff)
downloadrust-765076faabcceba7cc75ae78c4923f89bb34975b.tar.gz
rust-765076faabcceba7cc75ae78c4923f89bb34975b.zip
Give better help for identifier patterns failing exhaustiveness check
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/const-pattern-irrefutable.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/const-pattern-irrefutable.stderr b/src/test/ui/const-pattern-irrefutable.stderr
index 1f23eec43ef..af48b773638 100644
--- a/src/test/ui/const-pattern-irrefutable.stderr
+++ b/src/test/ui/const-pattern-irrefutable.stderr
@@ -2,19 +2,19 @@ error[E0005]: refutable pattern in local binding: `_` not covered
   --> $DIR/const-pattern-irrefutable.rs:22:9
    |
 22 |     let a = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-   |         ^ pattern `_` not covered
+   |         ^ interpreted as a constant pattern, not new variable
 
 error[E0005]: refutable pattern in local binding: `_` not covered
   --> $DIR/const-pattern-irrefutable.rs:23:9
    |
 23 |     let c = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-   |         ^ pattern `_` not covered
+   |         ^ interpreted as a constant pattern, not new variable
 
 error[E0005]: refutable pattern in local binding: `_` not covered
   --> $DIR/const-pattern-irrefutable.rs:24:9
    |
 24 |     let d = 4; //~ ERROR refutable pattern in local binding: `_` not covered
-   |         ^ pattern `_` not covered
+   |         ^ interpreted as a constant pattern, not new variable
 
 error: aborting due to 3 previous errors