2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:8:1
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/no-coverage.rs:4:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:20:1
|
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-06-05 21:24:14 -05:00
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` may only be applied to function definitions
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:42:5
|
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-06-05 21:24:14 -05:00
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` may only be applied to function definitions
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:47:9
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` may only be applied to function definitions
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:52:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:11:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | const X: u32;
|
|
|
|
| ------------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:14:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | type T;
|
|
|
|
| ------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:25:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | type T = Self;
|
|
|
|
| -------------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:28:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | type U = impl Trait;
|
|
|
|
| -------------------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:33:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | static X: u32;
|
|
|
|
| -------------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
error[E0788]: `#[coverage]` must be applied to coverable code
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:36:5
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 16:20:43 -05:00
|
|
|
LL | type T;
|
|
|
|
| ------- not coverable code
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:5:1
|
|
|
|
|
|
2023-08-09 09:57:16 -05:00
|
|
|
LL | #![coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-06-05 21:24:14 -05:00
|
|
|
|
2022-05-28 16:20:43 -05:00
|
|
|
error: unconstrained opaque type
|
2022-06-05 21:24:14 -05:00
|
|
|
--> $DIR/no-coverage.rs:29:14
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
|
|
|
LL | type U = impl Trait;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2022-10-21 22:09:49 -05:00
|
|
|
= note: `U` must be used in combination with a concrete type within the same impl
|
2022-05-28 16:20:43 -05:00
|
|
|
|
2022-06-05 21:24:14 -05:00
|
|
|
error: aborting due to 7 previous errors; 6 warnings emitted
|
2022-05-28 16:20:43 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0788`.
|