2019-04-17 06:01:57 -05:00
|
|
|
error: expected one of `,`, `.`, `?`, or an operator, found `some`
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:9:18
|
2019-04-17 06:01:57 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true some extra junk, "whatever");
|
2019-10-28 13:08:53 -05:00
|
|
|
| ^^^^ expected one of `,`, `.`, `?`, or an operator
|
2019-04-17 06:01:57 -05:00
|
|
|
|
|
|
|
error: expected one of `,`, `.`, `?`, or an operator, found `some`
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:12:18
|
2019-04-17 06:01:57 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true some extra junk);
|
2019-10-28 13:08:53 -05:00
|
|
|
| ^^^^ expected one of `,`, `.`, `?`, or an operator
|
2019-04-17 06:01:57 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `blah`
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:15:30
|
2019-04-17 06:01:57 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true, "whatever" blah);
|
|
|
|
| -^^^^ no rules expected this token in macro call
|
|
|
|
| |
|
|
|
|
| help: missing comma here
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
= note: while trying to match sequence start
|
2019-04-17 06:01:57 -05:00
|
|
|
|
2020-02-28 07:10:33 -06:00
|
|
|
error: unexpected string literal
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:18:18
|
2019-04-24 17:44:28 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true "whatever" blah);
|
|
|
|
| -^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try adding a comma
|
|
|
|
|
|
|
|
error: no rules expected the token `blah`
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:18:29
|
2019-04-24 17:44:28 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true "whatever" blah);
|
|
|
|
| -^^^^ no rules expected this token in macro call
|
|
|
|
| |
|
|
|
|
| help: missing comma here
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
= note: while trying to match sequence start
|
2019-04-24 17:44:28 -05:00
|
|
|
|
2020-02-28 07:10:33 -06:00
|
|
|
error: macro requires an expression as an argument
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:22:5
|
2019-04-24 17:44:28 -05:00
|
|
|
|
|
|
|
|
LL | assert!(true;);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ^^^^^^^^^^^^-^
|
2019-04-24 17:44:28 -05:00
|
|
|
| |
|
|
|
|
| help: try removing semicolon
|
|
|
|
|
2020-02-28 07:10:33 -06:00
|
|
|
error: unexpected string literal
|
2022-06-15 05:37:40 -05:00
|
|
|
--> $DIR/assert-trailing-junk.rs:25:27
|
2019-04-24 17:44:28 -05:00
|
|
|
|
|
|
|
|
LL | assert!(false || true "error message");
|
|
|
|
| -^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try adding a comma
|
|
|
|
|
2020-02-28 07:10:33 -06:00
|
|
|
error: aborting due to 7 previous errors
|
2019-04-17 06:01:57 -05:00
|
|
|
|