mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
26 lines
1.0 KiB
Rust
26 lines
1.0 KiB
Rust
|
use foo::{bar, baz;
|
||
|
//~^ ERROR expected one of `,`, `::`, `as`, or `}`, found `;`
|
||
|
|
||
|
use std::fmt::Display;
|
||
|
//~^ ERROR expected identifier, found keyword `use`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `std`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `;`
|
||
|
|
||
|
mod bar { }
|
||
|
//~^ ERROR expected identifier, found keyword `mod`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `bar`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `{`
|
||
|
|
||
|
mod baz { }
|
||
|
//~^ ERROR expected identifier, found keyword `mod`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `{`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `baz`
|
||
|
//~| ERROR expected one of `,` or `}`, found keyword `mod`
|
||
|
|
||
|
fn main() {}
|
||
|
//~^ ERROR expected identifier, found keyword `fn`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `(`
|
||
|
//~| ERROR expected one of `,` or `}`, found keyword `fn`
|
||
|
//~| ERROR expected one of `,`, `::`, `as`, or `}`, found `main`
|
||
|
|
||
|
//~ ERROR this file contains an unclosed delimiter
|