1
Fork 0

add help message for exclusive_range_pattern error

This commit is contained in:
Rowan S-L 2024-01-19 13:37:18 -05:00
parent 32ec40c685
commit 1c77f8738f
5 changed files with 11 additions and 1 deletions

View file

@ -398,7 +398,8 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
&self,
exclusive_range_pattern,
pattern.span,
"exclusive range pattern syntax is experimental"
"exclusive range pattern syntax is experimental",
"use an inclusive range pattern, like N..=M"
);
}
_ => {}