rust/tests/ui/parser/pat-lt-bracket-5.rs

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

6 lines
143 B
Rust
Raw Normal View History

2015-04-02 21:56:27 -05:00
fn main() {
let v[0] = v[1];
//~^ error: expected a pattern, found an expression
//~| error: cannot find value `v` in this scope
2017-11-23 15:16:19 -06:00
}