2018-09-03 02:17:20 -07:00
|
|
|
#![feature(marker_trait_attr)]
|
|
|
|
|
|
|
|
#[marker(always)]
|
|
|
|
trait Marker1 {}
|
2019-01-02 02:21:05 +03:00
|
|
|
//~^^ ERROR attribute must be of the form
|
2018-09-03 02:17:20 -07:00
|
|
|
|
|
|
|
#[marker("never")]
|
|
|
|
trait Marker2 {}
|
2019-01-02 02:21:05 +03:00
|
|
|
//~^^ ERROR attribute must be of the form
|
2018-09-03 02:17:20 -07:00
|
|
|
|
2019-02-25 22:40:44 +03:00
|
|
|
#[marker(key = "value")]
|
2018-09-03 02:17:20 -07:00
|
|
|
trait Marker3 {}
|
2019-02-25 22:40:44 +03:00
|
|
|
//~^^ ERROR attribute must be of the form `#[marker]`
|
2018-09-03 02:17:20 -07:00
|
|
|
|
|
|
|
fn main() {}
|