1 // Makes sure that a helpful message is shown when someone mistypes
2 // an inclusive range as `..==` rather than `..=`. This is an
3 // easy mistake, because of the resemblance to`==`.
4 // See #86395 for a bit of background.
7 if let 1..==3 = 1 {} //~ERROR unexpected `=` after inclusive range
8 //~|HELP use `..=` instead
9 //~|NOTE inclusive ranges end with a single equals sign