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.
This commit is contained in:
Felix S. Klock II 2013-10-01 01:51:21 +02:00
parent a076fef2b6
commit 924674202e

View file

@ -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();
}