2025-07-13 11:51:22 +02:00
|
|
|
error: multiple `coverage` attributes
|
|
|
|
|
--> $DIR/bad-syntax.rs:9:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: remove this attribute
|
|
|
|
|
|
|
|
|
|
|
note: attribute also specified here
|
|
|
|
|
--> $DIR/bad-syntax.rs:10:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: multiple `coverage` attributes
|
|
|
|
|
--> $DIR/bad-syntax.rs:13:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: remove this attribute
|
|
|
|
|
|
|
|
|
|
|
note: attribute also specified here
|
|
|
|
|
--> $DIR/bad-syntax.rs:14:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error[E0539]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:17:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^^ this attribute is only valid with either `on` or `off` as an argument
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
2025-02-20 23:05:38 +00:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
| +++++
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
| ++++
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0539]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:20:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage = true]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ this attribute is only valid with either `on` or `off` as an argument
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage = true]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage = true]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0805]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:23:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage()]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^--^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-02-20 23:05:38 +00:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
| +++
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
| ++
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0805]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:26:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage(off, off)]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^----------^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage(off, off)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(off, off)]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0805]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:29:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage(off, on)]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^---------^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage(off, on)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(off, on)]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0539]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:32:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage(bogus)]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^^-----^^
|
|
|
|
|
| |
|
|
|
|
|
| valid arguments are `on` or `off`
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage(bogus)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(bogus)]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0805]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:35:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage(bogus, off)]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^------------^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage(bogus, off)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(bogus, off)]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
error[E0805]: malformed `coverage` attribute input
|
2024-12-22 14:26:54 +11:00
|
|
|
--> $DIR/bad-syntax.rs:38:1
|
2024-06-18 18:18:15 +10:00
|
|
|
|
|
|
|
|
|
LL | #[coverage(off, bogus)]
|
2025-07-13 11:51:22 +02:00
|
|
|
| ^^^^^^^^^^------------^
|
|
|
|
|
| |
|
|
|
|
|
| expected a single argument here
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2024-06-20 18:13:48 +10:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[coverage(off, bogus)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(off, bogus)]
|
|
|
|
|
LL + #[coverage(on)]
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
|
2025-07-31 15:38:44 +02:00
|
|
|
error: expected identifier, found `,`
|
|
|
|
|
--> $DIR/bad-syntax.rs:44:12
|
|
|
|
|
|
|
|
|
|
|
LL | #[coverage(,off)]
|
|
|
|
|
| ^ expected identifier
|
|
|
|
|
|
|
|
|
|
|
help: remove this comma
|
|
|
|
|
|
|
|
|
|
|
LL - #[coverage(,off)]
|
|
|
|
|
LL + #[coverage(off)]
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-18 18:18:15 +10:00
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|
|
2025-07-13 11:51:22 +02:00
|
|
|
Some errors have detailed explanations: E0539, E0805.
|
|
|
|
|
For more information about an error, try `rustc --explain E0539`.
|