mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
142e25e356
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.
13 lines
138 B
Rust
13 lines
138 B
Rust
---
|
|
---
|
|
|
|
---
|
|
---
|
|
|
|
// hyphens only need to be escaped when at the start of a line
|
|
//@ check-pass
|
|
|
|
#![feature(frontmatter)]
|
|
|
|
fn main() {}
|