mirror of https://github.com/rust-lang/rust.git
14 lines
304 B
Rust
14 lines
304 B
Rust
//@ check-pass
|
|
//@ reference: attributes.diagnostic.namespace.unknown-invalid-syntax
|
|
#[diagnostic::non_existing_attribute]
|
|
//~^WARN unknown diagnostic attribute
|
|
pub trait Bar {
|
|
}
|
|
|
|
#[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
//~^WARN unknown diagnostic attribute
|
|
struct Foo;
|
|
|
|
fn main() {
|
|
}
|