Move regression test for #20971 into run-fail, since it panics.

This commit is contained in:
Niko Matsakis 2015-01-21 14:35:41 -05:00
parent fe0868b89b
commit 626db33bc8

View File

@ -10,6 +10,8 @@
// Regression test for Issue #20971.
// error-pattern:Hello, world!
pub trait Parser {
type Input;
fn parse(&mut self, input: <Self as Parser>::Input);
@ -23,7 +25,7 @@ impl Parser for () {
}
pub fn many() -> Box<Parser<Input=<() as Parser>::Input> + 'static> {
panic!()
panic!("Hello, world!")
}
fn main() {