os-rust/tests/ui/coverage-attr/no-coverage.stderr

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

97 lines
2.7 KiB
Text
Raw Normal View History

error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:7:1
|
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | / trait Trait {
LL | | #[coverage(off)]
LL | | const X: u32;
... |
LL | | type U;
LL | | }
| |_- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:39:5
2022-06-05 22:24:14 -04:00
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | let _ = ();
| ----------- not a function or closure
2022-06-05 22:24:14 -04:00
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:43:9
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | () => (),
| -------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:47:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | return ();
| --------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:9:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | const X: u32;
| ------------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:12:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | type T;
| ------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:22:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | type T = Self;
| -------------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:25:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | type U = impl Trait;
| -------------------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:30:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | static X: u32;
| -------------- not a function or closure
error[E0788]: attribute should be applied to a function definition or closure
--> $DIR/no-coverage.rs:33:5
|
2023-08-09 15:57:16 +01:00
LL | #[coverage(off)]
| ^^^^^^^^^^^^^^^^
LL | type T;
| ------- not a function or closure
error: unconstrained opaque type
--> $DIR/no-coverage.rs:26:14
|
LL | type U = impl Trait;
| ^^^^^^^^^^
|
2022-10-22 03:09:49 +00:00
= note: `U` must be used in combination with a concrete type within the same impl
error: aborting due to 11 previous errors
For more information about this error, try `rustc --explain E0788`.