diff --git a/src/parser/mod.rs b/src/parser/mod.rs index a19028c..e6665e8 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -2647,7 +2647,7 @@ impl Display for ParseError { #[cfg(test)] mod tests { use super::Parser; - use crate::Lexer; + use crate::{Lexer, Use}; use crate::{ ast::{ Arg, ArrayItem, BackedEnumType, Case, ClassFlag, Constant, DeclareItem, ElseIf, @@ -5252,6 +5252,53 @@ mod tests { ); } + #[test] + fn simple_use() { + assert_ast("