diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-09 20:41:01 +0200 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-14 18:18:42 +0200 |
| commit | 4bb7bf64e07fee97439ee6e647aa2b58cbaac54d (patch) | |
| tree | c90dba79f6e421a1d7d1fd428100ef32b47c0b9b /tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs | |
| parent | 5245c399720cf4f2414c2a4d9b4a5007ad942956 (diff) | |
| download | rust-4bb7bf64e07fee97439ee6e647aa2b58cbaac54d.tar.gz rust-4bb7bf64e07fee97439ee6e647aa2b58cbaac54d.zip | |
Update uitests
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs')
| -rw-r--r-- | tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs b/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs index 0bf620934ec..1fb206d628f 100644 --- a/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs +++ b/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs @@ -1,23 +1,23 @@ #![feature(marker_trait_attr)] -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on struct Struct {} -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on impl Struct {} -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on union Union { x: i32, } -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on const CONST: usize = 10; -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on fn function() {} -#[marker] //~ ERROR attribute should be applied to a trait +#[marker] //~ ERROR attribute cannot be used on type Type = (); fn main() {} |
