mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
13 lines
278 B
Rust
13 lines
278 B
Rust
#![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() {}
|