]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error: expected one of `,`, `.`, `?`, or an operator, found `some` |
2 | --> $DIR/assert-trailing-junk.rs:6:18 | |
3 | | | |
4 | LL | assert!(true some extra junk, "whatever"); | |
60c5eb7d | 5 | | ^^^^ expected one of `,`, `.`, `?`, or an operator |
48663c56 XL |
6 | |
7 | error: expected one of `,`, `.`, `?`, or an operator, found `some` | |
8 | --> $DIR/assert-trailing-junk.rs:9:18 | |
9 | | | |
10 | LL | assert!(true some extra junk); | |
60c5eb7d | 11 | | ^^^^ expected one of `,`, `.`, `?`, or an operator |
48663c56 XL |
12 | |
13 | error: no rules expected the token `blah` | |
14 | --> $DIR/assert-trailing-junk.rs:12:30 | |
15 | | | |
16 | LL | assert!(true, "whatever" blah); | |
17 | | -^^^^ no rules expected this token in macro call | |
18 | | | | |
19 | | help: missing comma here | |
20 | ||
21 | warning: unexpected string literal | |
22 | --> $DIR/assert-trailing-junk.rs:15:18 | |
23 | | | |
24 | LL | assert!(true "whatever" blah); | |
25 | | -^^^^^^^^^^ | |
26 | | | | |
27 | | help: try adding a comma | |
28 | | | |
29 | = note: this is going to be an error in the future | |
30 | ||
31 | error: no rules expected the token `blah` | |
32 | --> $DIR/assert-trailing-junk.rs:15:29 | |
33 | | | |
34 | LL | assert!(true "whatever" blah); | |
35 | | -^^^^ no rules expected this token in macro call | |
36 | | | | |
37 | | help: missing comma here | |
38 | ||
39 | warning: macro requires an expression as an argument | |
40 | --> $DIR/assert-trailing-junk.rs:19:5 | |
41 | | | |
42 | LL | assert!(true;); | |
43 | | ^^^^^^^^^^^^-^^ | |
44 | | | | |
45 | | help: try removing semicolon | |
46 | | | |
47 | = note: this is going to be an error in the future | |
48 | ||
49 | warning: unexpected string literal | |
50 | --> $DIR/assert-trailing-junk.rs:22:27 | |
51 | | | |
52 | LL | assert!(false || true "error message"); | |
53 | | -^^^^^^^^^^^^^^^ | |
54 | | | | |
55 | | help: try adding a comma | |
56 | | | |
57 | = note: this is going to be an error in the future | |
58 | ||
59 | error: aborting due to 4 previous errors | |
60 |