mirror of https://github.com/rust-lang/rust.git
16 lines
377 B
Rust
16 lines
377 B
Rust
----cargo
|
|
//~^ ERROR: unclosed frontmatter
|
|
//~| ERROR: frontmatters are experimental
|
|
|
|
//@ compile-flags: --crate-type lib
|
|
|
|
// Leading whitespace on the feature line prevents recovery. However
|
|
// the dashes quoted will not be used for recovery and the entire file
|
|
// should be treated as within the frontmatter block.
|
|
|
|
#![feature(frontmatter)]
|
|
|
|
fn foo() -> &str {
|
|
"----"
|
|
}
|