rust/tests/ui/suggestions/range-index-instead-of-colon.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
140 B
Rust
Raw Permalink Normal View History

//@ edition:2021
fn main() {
&[1, 2, 3][1:2];
//~^ ERROR: expected one of
//~| HELP: you might have meant a range expression
2023-05-03 08:54:22 -05:00
}