2024-11-18 10:45:26 -08:00
|
|
|
//@ reference: attributes.diagnostic.namespace.unknown-invalid-syntax
|
2025-07-11 01:24:24 +02:00
|
|
|
#![deny(unknown_diagnostic_attributes)]
|
2024-05-15 00:49:33 +02:00
|
|
|
|
|
|
|
|
#[diagnostic::onunimplemented]
|
|
|
|
|
//~^ERROR unknown diagnostic attribute
|
|
|
|
|
//~^^HELP an attribute with a similar name exists
|
|
|
|
|
trait X{}
|
|
|
|
|
|
|
|
|
|
#[diagnostic::un_onimplemented]
|
|
|
|
|
//~^ERROR unknown diagnostic attribute
|
|
|
|
|
//~^^HELP an attribute with a similar name exists
|
|
|
|
|
trait Y{}
|
|
|
|
|
|
|
|
|
|
#[diagnostic::on_implemented]
|
|
|
|
|
//~^ERROR unknown diagnostic attribute
|
|
|
|
|
//~^^HELP an attribute with a similar name exists
|
|
|
|
|
trait Z{}
|
|
|
|
|
|
2025-03-24 01:02:07 +01:00
|
|
|
#[diagnostic::dont_recommend]
|
|
|
|
|
//~^ERROR unknown diagnostic attribute
|
|
|
|
|
//~^^HELP an attribute with a similar name exists
|
|
|
|
|
impl X for u8 {}
|
|
|
|
|
|
2024-05-15 00:49:33 +02:00
|
|
|
fn main(){}
|