Skip to content

Commit

Permalink
Move regression test for rust-lang#20971 into run-fail, since it panics.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jan 21, 2015
1 parent fe0868b commit 626db33
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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);
Expand All @@ -23,7 +25,7 @@ impl Parser for () {
}

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

fn main() {
Expand Down

0 comments on commit 626db33

Please sign in to comment.