diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-09-29 08:14:39 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-29 08:14:39 -0700 |
| commit | 915511ec6d9ef0d93d4c170580faa47aaca7ade9 (patch) | |
| tree | fd120c89729a5781de2e7aca9956fc2d34f9c88e /src/test | |
| parent | 29216b5e5c77cbf6b4476bab025c53a8eb215554 (diff) | |
| parent | 2c589df6a2f6095eef4fea4ac8f31b2436cf2cb5 (diff) | |
| download | rust-915511ec6d9ef0d93d4c170580faa47aaca7ade9.tar.gz rust-915511ec6d9ef0d93d4c170580faa47aaca7ade9.zip | |
rollup merge of #17614 : nick29581/slice3
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/pat-range-bad-dots.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/pat-range-bad-dots.rs b/src/test/compile-fail/pat-range-bad-dots.rs new file mode 100644 index 00000000000..5605caaeeed --- /dev/null +++ b/src/test/compile-fail/pat-range-bad-dots.rs @@ -0,0 +1,16 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub fn main() { + match 22i { + 0 .. 3 => {} //~ ERROR expected `=>`, found `..` + _ => {} + } +} |
