Files
rust/tests/ui/parser/pat-ranges-3.rs

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

10 lines
236 B
Rust
Raw Normal View History

2015-04-03 05:56:27 +03:00
// Parsing of range patterns
2015-02-19 22:01:57 +08:00
fn main() {
let 10 ..= 10 + 3 = 12;
//~^ error: expected a pattern range bound, found an expression
let 10 - 3 ..= 10 = 8;
//~^ error: expected a pattern range bound, found an expression
2015-02-19 22:01:57 +08:00
}