]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/similar-tokens.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / similar-tokens.rs
1 #![allow(unused_imports)]
2
3 pub mod x {
4     pub struct A;
5     pub struct B;
6 }
7
8 // `.` is similar to `,` so list parsing should continue to closing `}`
9 use x::{A. B}; //~ ERROR expected one of `,`, `::`, `as`, or `}`, found `.`
10
11 fn main() {}