mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

This will make it easier to validate error improvements I'm working on as well as make it easier to update from rust-lang/rust
15 lines
338 B
Rust
15 lines
338 B
Rust
---cargo
|
|
//~^ ERROR: unclosed frontmatter
|
|
|
|
//@ compile-flags: --crate-type lib
|
|
|
|
#![feature(frontmatter)]
|
|
|
|
fn foo(x: i32) -> i32 {
|
|
---x
|
|
//~^ WARNING: use of a double negation [double_negations]
|
|
}
|
|
|
|
// this test is for the weird case that valid Rust code can have three dashes
|
|
// within them and get treated as a frontmatter close.
|