2018-09-03 02:17:20 -07:00
|
|
|
#![feature(marker_trait_attr)]
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
struct Struct {}
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
impl Struct {}
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
union Union {
|
|
|
|
|
x: i32,
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
const CONST: usize = 10;
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
fn function() {}
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
#[marker] //~ ERROR attribute cannot be used on
|
2018-09-03 02:17:20 -07:00
|
|
|
type Type = ();
|
|
|
|
|
|
|
|
|
|
fn main() {}
|