summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/similar-tokens.rs
blob: e3024c61ad2bd800da819675c749d809a5df53df (plain)
1
2
3
4
5
6
7
8
9
10
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() {}