blob: 37ef5c37029cf81c92375cefd7c1d08496f6764d [file] [log] [blame] [edit]
#![feature(ergonomic_clones)]
#![allow(incomplete_features)]
fn parse1() {
1.use!;
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `!`
}
fn parse2() {
1.use!(2);
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `!`
}
fn parse3() {
1.use 2;
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `2`
}
fn parse4() {
1.use? 2;
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `2`
}
fn parse5() {
1.use();
//~^ ERROR: incorrect use of `use`
}
fn parse6() {
1.use(2);
//~^ ERROR: expected function, found `{integer}` [E0618]
}
fn parse7() {
1.use { 2 };
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
}
fn main() {}