summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs
blob: c0cde75d4caebe4f306565df3018d91c341154d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// The original problem in #66340 was that `find_deprecation_generic`
// called `attr.meta().unwrap()` under the assumption that the attribute
// was a well-formed `MetaItem`.

fn main() {
    foo()
}

#[deprecated(note = test)]
//~^ ERROR expected unsuffixed literal or identifier, found `test`
fn foo() {}