Files
rust/tests/ui/attributes/lint_on_root.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.3 KiB
Plaintext
Raw Normal View History

error: `#[inline]` attribute cannot be used on crates
--> $DIR/lint_on_root.rs:3:1
|
LL | #![inline = ""]
| ^^^^^^^^^^^^^^^
|
= help: `#[inline]` can only be applied to functions
error: valid forms for the attribute are `#![inline(always)]`, `#![inline(never)]`, and `#![inline]`
2025-06-22 22:49:22 +02:00
--> $DIR/lint_on_root.rs:3:1
|
LL | #![inline = ""]
| ^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
2025-04-28 13:47:25 +02:00
= note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default
2025-06-22 22:49:22 +02:00
error: aborting due to 2 previous errors
2025-06-22 22:49:22 +02:00
Future incompatibility report: Future breakage diagnostic:
error: valid forms for the attribute are `#![inline(always)]`, `#![inline(never)]`, and `#![inline]`
--> $DIR/lint_on_root.rs:3:1
|
LL | #![inline = ""]
| ^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
2025-04-28 13:47:25 +02:00
= note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default