rustc/tests/ui/macros/macro-rules-as-derive-or-attr-issue-132928.rs
2025-02-17 11:14:05 +01:00

10 lines
385 B
Rust

#![crate_type = "lib"]
macro_rules! sample { () => {} }
#[sample] //~ ERROR cannot find attribute `sample` in this scope
#[derive(sample)] //~ ERROR cannot find derive macro `sample` in this scope
//~| ERROR cannot find derive macro `sample` in this scope
//~| ERROR cannot find derive macro `sample` in this scope
pub struct S {}