Skip to content

Commit b9eb5be

Browse files
committed
test: Show frontmatter behavior before impl
1 parent ce36a96 commit b9eb5be

38 files changed

+365
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
//~^ ERROR expected item, found `-`
3+
---
4+
5+
pub fn main() {
6+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected item, found `-`
2+
--> $DIR/feature-gate-frontmatter.rs:1:1
3+
|
4+
LL | ---
5+
| ^ expected item
6+
|
7+
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
8+
9+
error: aborting due to 1 previous error
10+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-----
2+
//~^ ERROR expected item, found `-`
3+
4+
---
5+
---
6+
7+
-----
8+
9+
#![feature(frontmatter)]
10+
11+
fn main() {
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected item, found `-`
2+
--> $DIR/frontmatter-escaped.rs:1:1
3+
|
4+
LL | -----
5+
| ^ expected item
6+
|
7+
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
8+
9+
error: aborting due to 1 previous error
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
---
4+
//~^ ERROR expected item, found `-`
5+
6+
---
7+
8+
#![feature(frontmatter)]
9+
// ignore-tidy-end-whitespace
10+
// ignore-tidy-leading-newlines
11+
12+
fn main() {
13+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected item, found `-`
2+
--> $DIR/frontmatter-ignored-space.rs:3:1
3+
|
4+
LL | ---
5+
| ^ expected item
6+
|
7+
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
8+
9+
error: aborting due to 1 previous error
10+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(frontmatter)]
2+
3+
---
4+
//~^ ERROR expected item, found `-`
5+
---
6+
7+
fn main() {
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected item, found `-`
2+
--> $DIR/frontmatter-invalid-after-attribute.rs:3:1
3+
|
4+
LL | ---
5+
| ^ expected item
6+
|
7+
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
8+
9+
error: aborting due to 1 previous error
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Comment
2+
3+
---
4+
//~^ ERROR expected item, found `-`
5+
---
6+
7+
#![feature(frontmatter)]
8+
9+
fn main() {
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected item, found `-`
2+
--> $DIR/frontmatter-invalid-after-comment.rs:3:1
3+
|
4+
LL | ---
5+
| ^ expected item
6+
|
7+
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
8+
9+
error: aborting due to 1 previous error
10+

0 commit comments

Comments
 (0)