mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 22:17:38 +00:00
19 lines
459 B
Rust
19 lines
459 B
Rust
![]() |
#![deny(unknown_or_malformed_diagnostic_attributes)]
|
||
|
|
||
|
#[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{}
|
||
|
|
||
|
fn main(){}
|