diff options
| author | varkor <github@varkor.com> | 2018-11-30 13:53:15 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-11-30 13:53:15 +0000 |
| commit | 4fc5758a67e38b21e975fc9efe071dd58f4b98c6 (patch) | |
| tree | 87353963637bf5efa251d0209b8323594c3434b1 /src/test/ui/consts/const-pattern-irrefutable.rs | |
| parent | e018268ffad0e3d2704705cb3337b6195b5cba08 (diff) | |
| download | rust-4fc5758a67e38b21e975fc9efe071dd58f4b98c6.tar.gz rust-4fc5758a67e38b21e975fc9efe071dd58f4b98c6.zip | |
Update existing tests with more precise error messages
Diffstat (limited to 'src/test/ui/consts/const-pattern-irrefutable.rs')
| -rw-r--r-- | src/test/ui/consts/const-pattern-irrefutable.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/consts/const-pattern-irrefutable.rs b/src/test/ui/consts/const-pattern-irrefutable.rs index af0b95e002d..278864d6de9 100644 --- a/src/test/ui/consts/const-pattern-irrefutable.rs +++ b/src/test/ui/consts/const-pattern-irrefutable.rs @@ -19,8 +19,8 @@ use foo::d; const a: u8 = 2; fn main() { - let a = 4; //~ ERROR refutable pattern in local binding: `_` not covered - let c = 4; //~ ERROR refutable pattern in local binding: `_` not covered - let d = 4; //~ ERROR refutable pattern in local binding: `_` not covered + let a = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered + let c = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered + let d = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered fn f() {} // Check that the `NOTE`s still work with an item here (c.f. issue #35115). } |
