mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
7f37f8af5f
These attributes apply to all enclosed functions/methods/closures, unless explicitly overridden by another coverage attribute.
229 lines
4.5 KiB
Plaintext
229 lines
4.5 KiB
Plaintext
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:11:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:16:5
|
|
|
|
|
LL | #![coverage]
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #![coverage(off)]
|
|
|
|
|
LL | #![coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:20:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:28:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:25:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:38:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:43:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:34:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:52:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:57:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:49:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error: malformed `coverage` attribute input
|
|
--> $DIR/word-only.rs:63:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:20:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | struct MyStruct;
|
|
| ---------------- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:34:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | / trait MyTrait {
|
|
LL | | #[coverage]
|
|
LL | |
|
|
LL | |
|
|
... |
|
|
LL | | type T;
|
|
LL | | }
|
|
| |_- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:38:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | const X: u32;
|
|
| ------------- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:43:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | type T;
|
|
| ------- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:28:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | const X: u32 = 7;
|
|
| ----------------- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:52:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | const X: u32 = 8;
|
|
| ----------------- not a function or closure
|
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
--> $DIR/word-only.rs:57:5
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
...
|
|
LL | type T = ();
|
|
| ------------ not a function or closure
|
|
|
|
error: aborting due to 19 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0788`.
|