rust/tests/ui/macros/assert-trailing-junk.with-generic-asset.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.9 KiB
Plaintext
Raw Normal View History

error: expected one of `,`, `.`, `?`, or an operator, found `some`
--> $DIR/assert-trailing-junk.rs:9:18
|
LL | assert!(true some extra junk, "whatever");
| ^^^^ expected one of `,`, `.`, `?`, or an operator
error: expected one of `,`, `.`, `?`, or an operator, found `some`
--> $DIR/assert-trailing-junk.rs:12:18
|
LL | assert!(true some extra junk);
| ^^^^ expected one of `,`, `.`, `?`, or an operator
error: no rules expected the token `blah`
--> $DIR/assert-trailing-junk.rs:15:30
|
LL | assert!(true, "whatever" blah);
| -^^^^ no rules expected this token in macro call
| |
| help: missing comma here
|
= note: while trying to match sequence start
error: unexpected string literal
--> $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`
--> $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
|
= note: while trying to match sequence start
2019-04-24 17:44:28 -05:00
error: macro requires an expression as an argument
--> $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
error: unexpected string literal
--> $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
error: aborting due to 7 previous errors