Move regression test for #20971 into run-fail, since it panics.
This commit is contained in:
parent
fe0868b89b
commit
626db33bc8
@ -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() {
|
Loading…
Reference in New Issue
Block a user