rust/tests/ui/coverage-attr/bad-attr-ice.rs

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() {}