mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
63a5f399ae
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
14 lines
394 B
Rust
14 lines
394 B
Rust
fn foo<#[derive(Debug)] T>() {
|
|
//~^ ERROR `derive` may only be applied to structs, enums and unions
|
|
//~| ERROR expected an inert attribute, found an attribute macro
|
|
match 0 {
|
|
#[derive(Debug)]
|
|
//~^ ERROR `derive` may only be applied to structs, enums and unions
|
|
//~| ERROR expected an inert attribute, found an attribute macro
|
|
_ => (),
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
}
|