@@ -7,28 +7,28 @@ LL | / trait Trait {
77LL | | #[coverage(off)]
88LL | | const X: u32;
99... |
10- LL | | type U ;
10+ LL | | fn g() ;
1111LL | | }
1212 | |_- not a function or closure
1313
1414error[E0788]: attribute should be applied to a function definition or closure
15- --> $DIR/no-coverage.rs:38 :5
15+ --> $DIR/no-coverage.rs:47 :5
1616 |
1717LL | #[coverage(off)]
1818 | ^^^^^^^^^^^^^^^^
1919LL | let _ = ();
2020 | ----------- not a function or closure
2121
2222error[E0788]: attribute should be applied to a function definition or closure
23- --> $DIR/no-coverage.rs:42 :9
23+ --> $DIR/no-coverage.rs:51 :9
2424 |
2525LL | #[coverage(off)]
2626 | ^^^^^^^^^^^^^^^^
2727LL | () => (),
2828 | -------- not a function or closure
2929
3030error[E0788]: attribute should be applied to a function definition or closure
31- --> $DIR/no-coverage.rs:46 :5
31+ --> $DIR/no-coverage.rs:55 :5
3232 |
3333LL | #[coverage(off)]
3434 | ^^^^^^^^^^^^^^^^
@@ -52,45 +52,61 @@ LL | type T;
5252 | ------- not a function or closure
5353
5454error[E0788]: attribute should be applied to a function definition or closure
55- --> $DIR/no-coverage.rs:21:5
55+ --> $DIR/no-coverage.rs:16:5
56+ |
57+ LL | #[coverage(off)]
58+ | ^^^^^^^^^^^^^^^^
59+ LL | fn f(&self);
60+ | ------------ not a function or closure
61+
62+ error[E0788]: attribute should be applied to a function definition or closure
63+ --> $DIR/no-coverage.rs:19:5
64+ |
65+ LL | #[coverage(off)]
66+ | ^^^^^^^^^^^^^^^^
67+ LL | fn g();
68+ | ------- not a function or closure
69+
70+ error[E0788]: attribute should be applied to a function definition or closure
71+ --> $DIR/no-coverage.rs:27:5
5672 |
5773LL | #[coverage(off)]
5874 | ^^^^^^^^^^^^^^^^
5975LL | type T = Self;
6076 | -------------- not a function or closure
6177
6278error[E0788]: attribute should be applied to a function definition or closure
63- --> $DIR/no-coverage.rs:24 :5
79+ --> $DIR/no-coverage.rs:30 :5
6480 |
6581LL | #[coverage(off)]
6682 | ^^^^^^^^^^^^^^^^
6783LL | type U = impl Trait;
6884 | -------------------- not a function or closure
6985
7086error[E0788]: attribute should be applied to a function definition or closure
71- --> $DIR/no-coverage.rs:29 :5
87+ --> $DIR/no-coverage.rs:38 :5
7288 |
7389LL | #[coverage(off)]
7490 | ^^^^^^^^^^^^^^^^
7591LL | static X: u32;
7692 | -------------- not a function or closure
7793
7894error[E0788]: attribute should be applied to a function definition or closure
79- --> $DIR/no-coverage.rs:32 :5
95+ --> $DIR/no-coverage.rs:41 :5
8096 |
8197LL | #[coverage(off)]
8298 | ^^^^^^^^^^^^^^^^
8399LL | type T;
84100 | ------- not a function or closure
85101
86102error: unconstrained opaque type
87- --> $DIR/no-coverage.rs:25 :14
103+ --> $DIR/no-coverage.rs:31 :14
88104 |
89105LL | type U = impl Trait;
90106 | ^^^^^^^^^^
91107 |
92108 = note: `U` must be used in combination with a concrete type within the same impl
93109
94- error: aborting due to 11 previous errors
110+ error: aborting due to 13 previous errors
95111
96112For more information about this error, try `rustc --explain E0788`.
0 commit comments