mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
1b0e78738b
This adds reference annotations for `diagnostic::on_unimplmented` and the `diagnostic` namespace in general.
10 lines
223 B
Rust
10 lines
223 B
Rust
//@ reference: attributes.diagnostic.namespace.unknown-invalid-syntax
|
|
|
|
#![deny(unknown_or_malformed_diagnostic_attributes)]
|
|
|
|
#[diagnostic::unknown_attribute]
|
|
//~^ERROR unknown diagnostic attribute
|
|
struct Foo;
|
|
|
|
fn main() {}
|