summary refs log tree commit diff
path: root/tests/ui/force-inlining/gate.rs
blob: d6a01a74a44b58506b64017bfba719d217680546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {
}