From 924674202ed7677e58ab01d75668d633b068f8dd Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 1 Oct 2013 01:51:21 +0200 Subject: [PATCH] Throwing in another interesting test case: There is no need to warn about constants that are (non-trivial) paths rather than just identifiers, regardless of what case their characters are. --- src/test/run-pass/match-static-const-rename.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/run-pass/match-static-const-rename.rs b/src/test/run-pass/match-static-const-rename.rs index 305a20b6642e..2bf16791b42c 100644 --- a/src/test/run-pass/match-static-const-rename.rs +++ b/src/test/run-pass/match-static-const-rename.rs @@ -41,7 +41,16 @@ fn g() { assert!(r == 1); } +fn h() { + let r = match (0,0) { + (0, m::aha) => 0, + (x, y) => 1 + x + y, + }; + assert!(r == 1); +} + fn main () { f(); g(); + h(); }