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