summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/range-index-instead-of-colon.rs
blob: 3267527ecf2a760b5b4d8ec5058b597d99ce3e19 (plain)
1
2
3
4
5
6
7
// edition:2021

fn main() {
    &[1, 2, 3][1:2];
    //~^ ERROR: expected one of
    //~| HELP: you might have meant a range expression
}