2023-04-28 06:04:35 -05:00
|
|
|
#[diagnostic::non_existing_attribute]
|
|
|
|
//~^ERROR `#[diagnostic]` attribute name space is experimental [E0658]
|
2023-06-02 06:55:46 -05:00
|
|
|
//~|WARNING unknown diagnostic attribute [unknown_or_malformed_diagnostic_attributes]
|
2023-04-28 06:04:35 -05:00
|
|
|
pub trait Bar {
|
|
|
|
}
|
|
|
|
|
|
|
|
#[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
|
|
//~^ERROR `#[diagnostic]` attribute name space is experimental [E0658]
|
2023-06-02 06:55:46 -05:00
|
|
|
//~|WARNING unknown diagnostic attribute [unknown_or_malformed_diagnostic_attributes]
|
2023-04-28 06:04:35 -05:00
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|