rust/tests/ui/parser/similar-tokens.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
240 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
#![allow(unused_imports)]
pub mod x {
pub struct A;
pub struct B;
}
// `.` is similar to `,` so list parsing should continue to closing `}`
2018-06-01 14:51:00 -05:00
use x::{A. B}; //~ ERROR expected one of `,`, `::`, `as`, or `}`, found `.`
fn main() {}