blob: cdf2b76a1ccccb727a54eaa000da6bc0e5a55ca3 [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()
}
#[deprecated(note = test)]
//~^ ERROR expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found
fn foo() {}