11error: `#[loop_match]` should be applied to a loop
2- --> $DIR/invalid-attribute.rs:14 :1
2+ --> $DIR/invalid-attribute.rs:15 :1
33 |
44LL | #[loop_match]
55 | ^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | struct S {
88 | -------- not a loop
99
1010error: `#[const_continue]` should be applied to a break expression
11- --> $DIR/invalid-attribute.rs:15 :1
11+ --> $DIR/invalid-attribute.rs:16 :1
1212 |
1313LL | #[const_continue]
1414 | ^^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | struct S {
1717 | -------- not a break expression
1818
1919error: `#[loop_match]` should be applied to a loop
20- --> $DIR/invalid-attribute.rs:28 :1
20+ --> $DIR/invalid-attribute.rs:29 :1
2121 |
2222LL | #[loop_match]
2323 | ^^^^^^^^^^^^^
@@ -26,15 +26,15 @@ LL | extern "C" fn ok() {}
2626 | ------------------ not a loop
2727
2828error: `#[const_continue]` should be applied to a break expression
29- --> $DIR/invalid-attribute.rs:29 :1
29+ --> $DIR/invalid-attribute.rs:30 :1
3030 |
3131LL | #[const_continue]
3232 | ^^^^^^^^^^^^^^^^^
3333LL | extern "C" fn ok() {}
3434 | ------------------ not a break expression
3535
3636error: `#[loop_match]` should be applied to a loop
37- --> $DIR/invalid-attribute.rs:33 :5
37+ --> $DIR/invalid-attribute.rs:34 :5
3838 |
3939LL | #[loop_match]
4040 | ^^^^^^^^^^^^^
@@ -43,15 +43,15 @@ LL | || {};
4343 | -- not a loop
4444
4545error: `#[const_continue]` should be applied to a break expression
46- --> $DIR/invalid-attribute.rs:34 :5
46+ --> $DIR/invalid-attribute.rs:35 :5
4747 |
4848LL | #[const_continue]
4949 | ^^^^^^^^^^^^^^^^^
5050LL | || {};
5151 | -- not a break expression
5252
5353error: `#[loop_match]` should be applied to a loop
54- --> $DIR/invalid-attribute.rs:38 :9
54+ --> $DIR/invalid-attribute.rs:39 :9
5555 |
5656LL | #[loop_match]
5757 | ^^^^^^^^^^^^^
@@ -60,15 +60,15 @@ LL | 5
6060 | - not a loop
6161
6262error: `#[const_continue]` should be applied to a break expression
63- --> $DIR/invalid-attribute.rs:39 :9
63+ --> $DIR/invalid-attribute.rs:40 :9
6464 |
6565LL | #[const_continue]
6666 | ^^^^^^^^^^^^^^^^^
6767LL | 5
6868 | - not a break expression
6969
7070error: `#[loop_match]` should be applied to a loop
71- --> $DIR/invalid-attribute.rs:23 :5
71+ --> $DIR/invalid-attribute.rs:24 :5
7272 |
7373LL | #[loop_match]
7474 | ^^^^^^^^^^^^^
@@ -77,15 +77,15 @@ LL | extern "C" fn invoke(&self);
7777 | ---------------------------- not a loop
7878
7979error: `#[const_continue]` should be applied to a break expression
80- --> $DIR/invalid-attribute.rs:24 :5
80+ --> $DIR/invalid-attribute.rs:25 :5
8181 |
8282LL | #[const_continue]
8383 | ^^^^^^^^^^^^^^^^^
8484LL | extern "C" fn invoke(&self);
8585 | ---------------------------- not a break expression
8686
8787error: `#[loop_match]` should be applied to a loop
88- --> $DIR/invalid-attribute.rs:9 :5
88+ --> $DIR/invalid-attribute.rs:10 :5
8989 |
9090LL | #[loop_match]
9191 | ^^^^^^^^^^^^^
@@ -94,17 +94,18 @@ LL | fn f();
9494 | ------- not a loop
9595
9696error: `#[const_continue]` should be applied to a break expression
97- --> $DIR/invalid-attribute.rs:10 :5
97+ --> $DIR/invalid-attribute.rs:11 :5
9898 |
9999LL | #[const_continue]
100100 | ^^^^^^^^^^^^^^^^^
101101LL | fn f();
102102 | ------- not a break expression
103103
104104error: `#[loop_match]` should be applied to a loop
105- --> $DIR/invalid-attribute.rs:5 :1
105+ --> $DIR/invalid-attribute.rs:6 :1
106106 |
107- LL | / #![feature(loop_match)]
107+ LL | / #![allow(incomplete_features)]
108+ LL | | #![feature(loop_match)]
108109LL | | #![loop_match]
109110 | | ^^^^^^^^^^^^^^
110111LL | | #![const_continue]
@@ -114,9 +115,10 @@ LL | | }
114115 | |_- not a loop
115116
116117error: `#[const_continue]` should be applied to a break expression
117- --> $DIR/invalid-attribute.rs:6 :1
118+ --> $DIR/invalid-attribute.rs:7 :1
118119 |
119- LL | / #![feature(loop_match)]
120+ LL | / #![allow(incomplete_features)]
121+ LL | | #![feature(loop_match)]
120122LL | | #![loop_match]
121123LL | | #![const_continue]
122124 | | ^^^^^^^^^^^^^^^^^^
0 commit comments