11error[E0788]: attribute should be applied to a function definition or closure
2- --> $DIR/no-coverage .rs:9 :1
2+ --> $DIR/allowed-positions .rs:11 :1
33 |
44LL | #[coverage(off)]
55 | ^^^^^^^^^^^^^^^^
@@ -12,95 +12,95 @@ LL | | }
1212 | |_- not a function or closure
1313
1414error[E0788]: attribute should be applied to a function definition or closure
15- --> $DIR/no-coverage .rs:50 :5
15+ --> $DIR/allowed-positions .rs:52 :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:54 :9
23+ --> $DIR/allowed-positions .rs:56 :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:58 :5
31+ --> $DIR/allowed-positions .rs:60 :5
3232 |
3333LL | #[coverage(off)]
3434 | ^^^^^^^^^^^^^^^^
3535LL | return ();
3636 | --------- not a function or closure
3737
3838error[E0788]: attribute should be applied to a function definition or closure
39- --> $DIR/no-coverage .rs:11 :5
39+ --> $DIR/allowed-positions .rs:13 :5
4040 |
4141LL | #[coverage(off)]
4242 | ^^^^^^^^^^^^^^^^
4343LL | const X: u32;
4444 | ------------- not a function or closure
4545
4646error[E0788]: attribute should be applied to a function definition or closure
47- --> $DIR/no-coverage .rs:14 :5
47+ --> $DIR/allowed-positions .rs:16 :5
4848 |
4949LL | #[coverage(off)]
5050 | ^^^^^^^^^^^^^^^^
5151LL | 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:19 :5
55+ --> $DIR/allowed-positions .rs:21 :5
5656 |
5757LL | #[coverage(off)]
5858 | ^^^^^^^^^^^^^^^^
5959LL | fn f(&self);
6060 | ------------ not a function or closure
6161
6262error[E0788]: attribute should be applied to a function definition or closure
63- --> $DIR/no-coverage .rs:22 :5
63+ --> $DIR/allowed-positions .rs:24 :5
6464 |
6565LL | #[coverage(off)]
6666 | ^^^^^^^^^^^^^^^^
6767LL | fn g();
6868 | ------- not a function or closure
6969
7070error[E0788]: attribute should be applied to a function definition or closure
71- --> $DIR/no-coverage .rs:30 :5
71+ --> $DIR/allowed-positions .rs:32 :5
7272 |
7373LL | #[coverage(off)]
7474 | ^^^^^^^^^^^^^^^^
7575LL | type T = Self;
7676 | -------------- not a function or closure
7777
7878error[E0788]: attribute should be applied to a function definition or closure
79- --> $DIR/no-coverage .rs:33 :5
79+ --> $DIR/allowed-positions .rs:35 :5
8080 |
8181LL | #[coverage(off)]
8282 | ^^^^^^^^^^^^^^^^
8383LL | type U = impl Trait;
8484 | -------------------- not a function or closure
8585
8686error[E0788]: attribute should be applied to a function definition or closure
87- --> $DIR/no-coverage .rs:41 :5
87+ --> $DIR/allowed-positions .rs:43 :5
8888 |
8989LL | #[coverage(off)]
9090 | ^^^^^^^^^^^^^^^^
9191LL | static X: u32;
9292 | -------------- not a function or closure
9393
9494error[E0788]: attribute should be applied to a function definition or closure
95- --> $DIR/no-coverage .rs:44 :5
95+ --> $DIR/allowed-positions .rs:46 :5
9696 |
9797LL | #[coverage(off)]
9898 | ^^^^^^^^^^^^^^^^
9999LL | type T;
100100 | ------- not a function or closure
101101
102102error: unconstrained opaque type
103- --> $DIR/no-coverage .rs:34 :14
103+ --> $DIR/allowed-positions .rs:36 :14
104104 |
105105LL | type U = impl Trait;
106106 | ^^^^^^^^^^
0 commit comments