blob: 787acdad388424ea732a5224799545c57467d8c9 [file] [log] [blame] [edit]
//@ compile-flags: -Z unstable-options
#![feature(rustc_attrs)]
#[rustc_lint_diagnostics]
//~^ ERROR `#[rustc_lint_diagnostics]` attribute cannot be used on structs
struct Foo;
impl Foo {
#[rustc_lint_diagnostics(a)]
//~^ ERROR malformed `rustc_lint_diagnostics`
fn bar() {}
}
fn main() {}