mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
![Georg Semmler](/assets/img/avatar_default.png)
Co-authored-by: est31 <est31@users.noreply.github.com> Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
14 lines
431 B
Rust
14 lines
431 B
Rust
#[diagnostic::non_existing_attribute]
|
|
//~^ERROR `#[diagnostic]` attribute name space is experimental [E0658]
|
|
//~|WARNING unknown diagnostic attribute [unknown_diagnostic_attributes]
|
|
pub trait Bar {
|
|
}
|
|
|
|
#[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
//~^ERROR `#[diagnostic]` attribute name space is experimental [E0658]
|
|
//~|WARNING unknown diagnostic attribute [unknown_diagnostic_attributes]
|
|
struct Foo;
|
|
|
|
fn main() {
|
|
}
|