Skip to content

Commit 626db33

Browse files
committed
Move regression test for #20971 into run-fail, since it panics.
1 parent fe0868b commit 626db33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/issue-20971.rs renamed to src/test/run-fail/issue-20971.rs

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

1111
// Regression test for Issue #20971.
1212

13+
// error-pattern:Hello, world!
14+
1315
pub trait Parser {
1416
type Input;
1517
fn parse(&mut self, input: <Self as Parser>::Input);
@@ -23,7 +25,7 @@ impl Parser for () {
2325
}
2426

2527
pub fn many() -> Box<Parser<Input=<() as Parser>::Input> + 'static> {
26-
panic!()
28+
panic!("Hello, world!")
2729
}
2830

2931
fn main() {

0 commit comments

Comments
 (0)