]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/assert-trailing-junk.stderr
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / test / ui / macros / assert-trailing-junk.stderr
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");
5    |                  ^^^^ expected one of `,`, `.`, `?`, or an operator
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);
11    |                  ^^^^ expected one of `,`, `.`, `?`, or an operator
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 error: 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 error: no rules expected the token `blah`
30   --> $DIR/assert-trailing-junk.rs:15:29
31    |
32 LL |     assert!(true "whatever" blah);
33    |                            -^^^^ no rules expected this token in macro call
34    |                            |
35    |                            help: missing comma here
36
37 error: macro requires an expression as an argument
38   --> $DIR/assert-trailing-junk.rs:19:5
39    |
40 LL |     assert!(true;);
41    |     ^^^^^^^^^^^^-^
42    |                 |
43    |                 help: try removing semicolon
44
45 error: unexpected string literal
46   --> $DIR/assert-trailing-junk.rs:22:27
47    |
48 LL |     assert!(false || true "error message");
49    |                          -^^^^^^^^^^^^^^^
50    |                          |
51    |                          help: try adding a comma
52
53 error: aborting due to 7 previous errors
54