Skip to content

Commit 4db01c0

Browse files
committed
---
yaml --- r: 82783 b: refs/heads/auto c: e2be7ac h: refs/heads/master i: 82781: f8cdbb0 82779: 145822d 82775: 89113c2 82767: e4b2e38 82751: 8dbbd7e v: v3
1 parent f62895b commit 4db01c0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: c0599b1bbbf9e4dcfb05a06aa2eef900aa9e4965
16+
refs/heads/auto: e2be7aca08f5eac1c0a0eae589c916fc39d57193
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ fn f() {
2626
(x, y) => 1 + x + y,
2727
};
2828
assert!(r == 1);
29+
let r = match (0,97) {
30+
(0, A) => 0,
31+
(x, y) => 1 + x + y,
32+
};
33+
assert!(r == 0);
2934
}
3035

3136
mod m {
@@ -39,6 +44,11 @@ fn g() {
3944
(x, y) => 1 + x + y,
4045
};
4146
assert!(r == 1);
47+
let r = match (0,7) {
48+
(0, AHA) => 0,
49+
(x, y) => 1 + x + y,
50+
};
51+
assert!(r == 0);
4252
}
4353

4454
fn h() {
@@ -47,6 +57,11 @@ fn h() {
4757
(x, y) => 1 + x + y,
4858
};
4959
assert!(r == 1);
60+
let r = match (0,7) {
61+
(0, m::aha) => 0,
62+
(x, y) => 1 + x + y,
63+
};
64+
assert!(r == 0);
5065
}
5166

5267
fn main () {

0 commit comments

Comments
 (0)