rust/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs
Jonathan Brouwer 4bb7bf64e0
Update uitests
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-14 18:18:42 +02:00

24 lines
457 B
Rust

#![feature(marker_trait_attr)]
#[marker] //~ ERROR attribute cannot be used on
struct Struct {}
#[marker] //~ ERROR attribute cannot be used on
impl Struct {}
#[marker] //~ ERROR attribute cannot be used on
union Union {
x: i32,
}
#[marker] //~ ERROR attribute cannot be used on
const CONST: usize = 10;
#[marker] //~ ERROR attribute cannot be used on
fn function() {}
#[marker] //~ ERROR attribute cannot be used on
type Type = ();
fn main() {}