about summary refs log tree commit diff
path: root/tests/ui/macros/macro-rules-as-derive-or-attr-issue-132928.rs
blob: a2e1398c61e66cbd85c3f8ecd05bc2f2807dcfcd (plain)
1
2
3
4
5
6
7
8
9
#![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 {}