Skip to content

Commit 9246742

Browse files
committed
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.
1 parent a076fef commit 9246742

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/match-static-const-rename.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,16 @@ fn g() {
4141
assert!(r == 1);
4242
}
4343

44+
fn h() {
45+
let r = match (0,0) {
46+
(0, m::aha) => 0,
47+
(x, y) => 1 + x + y,
48+
};
49+
assert!(r == 1);
50+
}
51+
4452
fn main () {
4553
f();
4654
g();
55+
h();
4756
}

0 commit comments

Comments
 (0)