rust/tests/ui/marker_trait_attr/marker-attribute-with-values.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
278 B
Rust
Raw Normal View History

#![feature(marker_trait_attr)]
#[marker(always)] //~ ERROR malformed `marker` attribute
trait Marker1 {}
#[marker("never")] //~ ERROR malformed `marker` attribute
trait Marker2 {}
#[marker(key = "value")] //~ ERROR malformed `marker` attribute
trait Marker3 {}
fn main() {}