mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
d56cdd48cb
Update tests
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
error[E0658]: `#[diagnostic]` attribute name space is experimental
|
|
--> $DIR/feature-gate-diagnostic_namespace.rs:1:3
|
|
|
|
|
LL | #[diagnostic::non_existing_attribute]
|
|
| ^^^^^^^^^^
|
|
|
|
|
= note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
|
|
= help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: `#[diagnostic]` attribute name space is experimental
|
|
--> $DIR/feature-gate-diagnostic_namespace.rs:7:3
|
|
|
|
|
LL | #[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
| ^^^^^^^^^^
|
|
|
|
|
= note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
|
|
= help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
warning: unknown diagnostic attribute
|
|
--> $DIR/feature-gate-diagnostic_namespace.rs:1:15
|
|
|
|
|
LL | #[diagnostic::non_existing_attribute]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default
|
|
|
|
warning: unknown diagnostic attribute
|
|
--> $DIR/feature-gate-diagnostic_namespace.rs:7:15
|
|
|
|
|
LL | #[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors; 2 warnings emitted
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|