]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/assert-trailing-junk.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / macros / assert-trailing-junk.stderr
CommitLineData
48663c56
XL
1error: expected one of `,`, `.`, `?`, or an operator, found `some`
2 --> $DIR/assert-trailing-junk.rs:6:18
3 |
4LL | assert!(true some extra junk, "whatever");
60c5eb7d 5 | ^^^^ expected one of `,`, `.`, `?`, or an operator
48663c56
XL
6
7error: expected one of `,`, `.`, `?`, or an operator, found `some`
8 --> $DIR/assert-trailing-junk.rs:9:18
9 |
10LL | assert!(true some extra junk);
60c5eb7d 11 | ^^^^ expected one of `,`, `.`, `?`, or an operator
48663c56
XL
12
13error: no rules expected the token `blah`
14 --> $DIR/assert-trailing-junk.rs:12:30
15 |
16LL | assert!(true, "whatever" blah);
17 | -^^^^ no rules expected this token in macro call
18 | |
19 | help: missing comma here
20
21warning: unexpected string literal
22 --> $DIR/assert-trailing-junk.rs:15:18
23 |
24LL | 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
31error: no rules expected the token `blah`
32 --> $DIR/assert-trailing-junk.rs:15:29
33 |
34LL | assert!(true "whatever" blah);
35 | -^^^^ no rules expected this token in macro call
36 | |
37 | help: missing comma here
38
39warning: macro requires an expression as an argument
40 --> $DIR/assert-trailing-junk.rs:19:5
41 |
42LL | assert!(true;);
43 | ^^^^^^^^^^^^-^^
44 | |
45 | help: try removing semicolon
46 |
47 = note: this is going to be an error in the future
48
49warning: unexpected string literal
50 --> $DIR/assert-trailing-junk.rs:22:27
51 |
52LL | 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
59error: aborting due to 4 previous errors
60