rust/tests/ui/force-inlining/gate.rs

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

13 lines
317 B
Rust
Raw Normal View History

//@ 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() {
}