Skip to content

Commit 8de4192

Browse files
committed
---
yaml --- r: 187182 b: refs/heads/try c: 0643494 h: refs/heads/master v: v3
1 parent 603f847 commit 8de4192

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 61ea8b33d03b2b434793e6fc8f0a3cc67b90a72a
5+
refs/heads/try: 0643494bc4d093dd660044b86c1d43820c40daf8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/test/compile-fail/issue-22426-1.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
fn main() {
1212
match 42 {
13-
x < 7 => (), //~ ERROR unexpected token `<`
13+
x < 7 => (),
14+
//~^ error: unexpected token: `<`
1415
_ => ()
1516
}
1617
}

branches/try/src/test/compile-fail/issue-22426-2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn a(B<) {} //~ ERROR unexpected token `<`
11+
fn a(B<) {}
12+
//~^ error: unexpected token: `<`

branches/try/src/test/compile-fail/issue-22426.rs renamed to branches/try/src/test/compile-fail/issue-22426-3.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ struct Foo<T>(T, T);
1313
impl<T> Foo<T> {
1414
fn foo(&self) {
1515
match *self {
16-
Foo<T>(x, y) => { //~ ERROR unexpected token `<`
16+
Foo<T>(x, y) => {
17+
//~^ error: unexpected token: `<`
1718
println!("Goodbye, World!")
1819
}
1920
}

branches/try/src/test/run-pass/issue-22426.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ struct Foo<T>(T, T);
1313
impl<T> Foo<T> {
1414
fn foo(&self) {
1515
match *self {
16-
Foo::<T>(ref x, ref y) => { //~ ERROR unexpected token `<`
16+
Foo::<T>(ref x, ref y) => {
1717
println!("Goodbye, World!")
1818
}
1919
}
2020
}
2121
}
22+
23+
fn main() {
24+
match 42 {
25+
x if x < 7 => (),
26+
_ => ()
27+
}
28+
}

0 commit comments

Comments
 (0)