Handle recursion_limit parsing errors

This commit is contained in:
Fisher Darling 2019-12-12 21:18:21 -07:00 committed by Fisher Darling
parent 116dff95a3
commit c53693d34d
10 changed files with 112 additions and 6 deletions

View file

@ -0,0 +1,7 @@
// Test the parse error for an overflowing recursion_limit
#![recursion_limit = "999999999999999999999999"]
//~^ ERROR `recursion_limit` must be a non-negative integer
//~| `recursion_limit` is too large
fn main() {}