mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
9 lines
498 B
Rust
9 lines
498 B
Rust
// NOTE: this used to panic in debug builds (by a sanity assertion)
|
|
// and not emit any lint on release builds. See https://github.com/rust-lang/rust/issues/142891.
|
|
#![inline = ""]
|
|
//~^ ERROR: valid forms for the attribute are `#![inline(always)]`, `#![inline(never)]`, and `#![inline]` [ill_formed_attribute_input]
|
|
//~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
//~| ERROR attribute cannot be used on
|
|
|
|
fn main() {}
|