about summary refs log tree commit diff
path: root/src/test/ui/range/range-inclusive-pattern-precedence.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/range/range-inclusive-pattern-precedence.rs')
-rw-r--r--src/test/ui/range/range-inclusive-pattern-precedence.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/range/range-inclusive-pattern-precedence.rs b/src/test/ui/range/range-inclusive-pattern-precedence.rs
index f38a7920c94..ce763ba2677 100644
--- a/src/test/ui/range/range-inclusive-pattern-precedence.rs
+++ b/src/test/ui/range/range-inclusive-pattern-precedence.rs
@@ -10,10 +10,11 @@ pub fn main() {
     match &12 {
         &0...9 => {}
         //~^ WARN `...` range patterns are deprecated
+        //~| WARN this was previously accepted by the compiler
         //~| HELP use `..=` for an inclusive range
         &10..=15 => {}
         //~^ ERROR the range pattern here has ambiguous interpretation
-        //~^^ HELP add parentheses to clarify the precedence
+        //~| HELP add parentheses to clarify the precedence
         &(16..=20) => {}
         _ => {}
     }