mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 08:16:56 +00:00
17 lines
637 B
Rust
17 lines
637 B
Rust
//@ compile-flags: --crate-type=lib
|
|
#![allow(internal_features)]
|
|
|
|
#[rustc_force_inline]
|
|
//~^ 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
|
|
pub fn bare() {
|
|
}
|
|
|
|
#[rustc_force_inline = "the test requires it"]
|
|
//~^ 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
|
|
pub fn justified() {
|
|
}
|