]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs
Cache expansion hash.
[rust.git] / src / test / ui / deprecation / issue-66340-deprecated-attr-non-meta-grammar.rs
1 // The original problem in #66340 was that `find_deprecation_generic`
2 // called `attr.meta().unwrap()` under the assumption that the attribute
3 // was a well-formed `MetaItem`.
4
5 fn main() {
6     foo()
7 }
8
9 #[deprecated(note = test)]
10 //~^ ERROR expected unsuffixed literal or identifier, found `test`
11 fn foo() {}