diff options
Diffstat (limited to 'tests/ui/parser/similar-tokens.rs')
-rw-r--r-- | tests/ui/parser/similar-tokens.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/similar-tokens.rs b/tests/ui/parser/similar-tokens.rs new file mode 100644 index 000000000..e3024c61a --- /dev/null +++ b/tests/ui/parser/similar-tokens.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] + +pub mod x { + pub struct A; + pub struct B; +} + +// `.` is similar to `,` so list parsing should continue to closing `}` +use x::{A. B}; //~ ERROR expected one of `,`, `::`, `as`, or `}`, found `.` + +fn main() {} |