mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00

The force inlining attribute isn't is never used with `#![..]` attribute syntax, only `#[..]` syntax.
13 lines
317 B
Rust
13 lines
317 B
Rust
//@ compile-flags: --crate-type=lib
|
|
#![allow(internal_features)]
|
|
|
|
#[rustc_force_inline]
|
|
//~^ ERROR #[rustc_force_inline] forces a free function to be inlined
|
|
pub fn bare() {
|
|
}
|
|
|
|
#[rustc_force_inline = "the test requires it"]
|
|
//~^ ERROR #[rustc_force_inline] forces a free function to be inlined
|
|
pub fn justified() {
|
|
}
|