blob: c5433151a8fd2fc0e3a19e0c4d6c917c700fe1ab [file] [log] [blame] [edit]
// 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() //~ WARNING use of deprecated function `foo`
}
#[deprecated(note = test)]
//~^ ERROR expected unsuffixed literal, found `test`
fn foo() {}