mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-04 08:58:23 +00:00
12 lines
294 B
Rust
12 lines
294 B
Rust
// 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, found `test`
|
|
fn foo() {}
|