Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/frontmatter/frontmatter-whitespace-1.rs

11 lines
231 B
Rust
Raw Normal View History

Implement RFC 3503: frontmatters Supercedes #137193
2025-04-12 15:53:46 +00:00
---
//~^ ERROR: invalid preceding whitespace for frontmatter opening
fix(lexer): Don't require frontmatters to be escaped with indented fences The RFC only limits hyphens at the beginning of lines and not if they are indented or embedded in other content. Sticking to that approach was confirmed by the T-lang liason at https://github.com/rust-lang/rust/issues/141367#issuecomment-3202217544 There is a regression in error message quality which I'm leaving for someone if they feel this needs improving.
2025-08-22 10:46:47 -05:00
//~^^ ERROR: unclosed frontmatter
Implement RFC 3503: frontmatters Supercedes #137193
2025-04-12 15:53:46 +00:00
---
#![feature(frontmatter)]
// check that whitespaces should not precede the frontmatter opening or close.
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 225ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API