mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +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() {}
|