2024-09-23 18:46:23 +01:00
|
|
|
//@ compile-flags: --crate-type=lib
|
|
|
|
|
#![allow(internal_features)]
|
|
|
|
|
|
|
|
|
|
#[rustc_force_inline]
|
2025-05-18 18:35:13 +02:00
|
|
|
//~^ ERROR use of an internal attribute [E0658]
|
|
|
|
|
//~| NOTE the `#[rustc_force_inline]` attribute is an internal implementation detail that will never be stable
|
|
|
|
|
//~| NOTE `#[rustc_force_inline]` forces a free function to be inlined
|
2024-09-23 18:46:23 +01:00
|
|
|
pub fn bare() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[rustc_force_inline = "the test requires it"]
|
2025-05-18 18:35:13 +02:00
|
|
|
//~^ ERROR use of an internal attribute [E0658]
|
|
|
|
|
//~| NOTE the `#[rustc_force_inline]` attribute is an internal implementation detail that will never be stable
|
|
|
|
|
//~| NOTE `#[rustc_force_inline]` forces a free function to be inlined
|
2024-09-23 18:46:23 +01:00
|
|
|
pub fn justified() {
|
|
|
|
|
}
|