]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/assert-trailing-junk.without-generic-asset.stderr
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors
[rust.git] / tests / ui / macros / assert-trailing-junk.without-generic-asset.stderr
1 error: expected one of `,`, `.`, `?`, or an operator, found `some`
2   --> $DIR/assert-trailing-junk.rs:9:18
3    |
4 LL |     assert!(true some extra junk, "whatever");
5    |                  ^^^^ expected one of `,`, `.`, `?`, or an operator
6
7 error: expected one of `,`, `.`, `?`, or an operator, found `some`
8   --> $DIR/assert-trailing-junk.rs:12:18
9    |
10 LL |     assert!(true some extra junk);
11    |                  ^^^^ expected one of `,`, `.`, `?`, or an operator
12
13 error: no rules expected the token `blah`
14   --> $DIR/assert-trailing-junk.rs:15: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    = note: while trying to match sequence start
22
23 error: unexpected string literal
24   --> $DIR/assert-trailing-junk.rs:18:18
25    |
26 LL |     assert!(true "whatever" blah);
27    |                 -^^^^^^^^^^
28    |                 |
29    |                 help: try adding a comma
30
31 error: no rules expected the token `blah`
32   --> $DIR/assert-trailing-junk.rs:18: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    = note: while trying to match sequence start
40
41 error: macro requires an expression as an argument
42   --> $DIR/assert-trailing-junk.rs:22:5
43    |
44 LL |     assert!(true;);
45    |     ^^^^^^^^^^^^-^
46    |                 |
47    |                 help: try removing semicolon
48
49 error: unexpected string literal
50   --> $DIR/assert-trailing-junk.rs:25:27
51    |
52 LL |     assert!(false || true "error message");
53    |                          -^^^^^^^^^^^^^^^
54    |                          |
55    |                          help: try adding a comma
56
57 error: aborting due to 7 previous errors
58