mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
12 lines
369 B
Rust
12 lines
369 B
Rust
//@ compile-flags: -Cinstrument-coverage
|
|
//@ needs-profiler-runtime
|
|
//@ reference: attributes.coverage.syntax
|
|
|
|
// Malformed `#[coverage(..)]` attributes should not cause an ICE when built
|
|
// with `-Cinstrument-coverage`.
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/127880>.
|
|
|
|
#[coverage]
|
|
//~^ ERROR malformed `coverage` attribute input
|
|
fn main() {}
|