1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#![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() {}
|