2024-06-20 18:13:48 +10:00
|
|
|
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
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
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)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2024-06-20 18:13:48 +10:00
|
|
|
LL | let _ = ();
|
|
|
|
| ----------- not a function or closure
|
2022-06-05 22:24:14 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:43:9
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2024-06-20 18:13:48 +10:00
|
|
|
LL | () => (),
|
|
|
|
| -------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:47:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2024-06-20 18:13:48 +10:00
|
|
|
LL | return ();
|
|
|
|
| --------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:9:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | const X: u32;
|
2024-06-20 18:13:48 +10:00
|
|
|
| ------------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:12:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | type T;
|
2024-06-20 18:13:48 +10:00
|
|
|
| ------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:22:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | type T = Self;
|
2024-06-20 18:13:48 +10:00
|
|
|
| -------------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:25:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | type U = impl Trait;
|
2024-06-20 18:13:48 +10:00
|
|
|
| -------------------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:30:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | static X: u32;
|
2024-06-20 18:13:48 +10:00
|
|
|
| -------------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-20 18:13:48 +10:00
|
|
|
error[E0788]: attribute should be applied to a function definition or closure
|
|
|
|
--> $DIR/no-coverage.rs:33:5
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
2023-08-09 15:57:16 +01:00
|
|
|
LL | #[coverage(off)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-05-28 17:20:43 -04:00
|
|
|
LL | type T;
|
2024-06-20 18:13:48 +10:00
|
|
|
| ------- not a function or closure
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
|
|
error: unconstrained opaque type
|
2024-06-20 18:13:48 +10:00
|
|
|
--> $DIR/no-coverage.rs:26:14
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
|
|
|
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
|
2022-05-28 17:20:43 -04:00
|
|
|
|
2024-06-21 21:59:02 +10:00
|
|
|
error: aborting due to 11 previous errors
|
2022-05-28 17:20:43 -04:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0788`.
|