diff --git a/tests/tokens.rs b/tests/tokens.rs index 2523af7d..843fc719 100644 --- a/tests/tokens.rs +++ b/tests/tokens.rs @@ -67,5 +67,13 @@ fn test_tokens_unicode_xid_ident() -> Result<(), Box> { #[cfg(not(feature = "unicode-xid-ident"))] assert!(result.is_err()); + let result = engine.eval::( + r" + fn _1() { 1 } + _1() + ", + ); + assert!(result.is_err()); + Ok(()) }