diff options
| author | John Clements <clements@racket-lang.org> | 2013-04-18 15:49:28 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-04-30 16:31:55 -0700 |
| commit | cc4e0186ac005768ebede5b6b858b223c33e4de3 (patch) | |
| tree | 0a7ed5c50d13475958da612ae1efbee6a9df43e1 /src/test | |
| parent | add60bb081b9c23c8606a22b078f0885d5ab169c (diff) | |
added test case for issue 5927
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-fail/issue-5927.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/run-fail/issue-5927.rs b/src/test/run-fail/issue-5927.rs new file mode 100644 index 00000000000..f302d706c15 --- /dev/null +++ b/src/test/run-fail/issue-5927.rs @@ -0,0 +1,20 @@ +// Copyright 2013 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. + + + +// error-pattern:cant-use-x-as-pattern-mumble + +fn main() { + let z = match 3 { + x() => x + }; + assert_eq!(z,3); +} |
