2018-09-03 02:17:20 -07:00
|
|
|
#![feature(marker_trait_attr)]
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
struct Struct {}
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
impl Struct {}
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
union Union {
|
|
|
|
x: i32,
|
|
|
|
}
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
const CONST: usize = 10;
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
fn function() {}
|
|
|
|
|
2022-07-11 18:59:04 +01:00
|
|
|
#[marker] //~ ERROR attribute should be applied to a trait
|
2018-09-03 02:17:20 -07:00
|
|
|
type Type = ();
|
|
|
|
|
|
|
|
fn main() {}
|