blob: 25c76eaf37a91e1e9c4b37376b3f2c872df0d4d0 [file] [log] [blame] [edit]
//@ check-fail
#![feature(rustc_attrs)]
struct Foo;
impl Foo {
#[rustc_force_inline]
//~^ ERROR: `Foo::bar` is incompatible with `#[rustc_force_inline]`
#[rustc_no_mir_inline]
fn bar() {}
}
fn bar_caller() {
unsafe {
Foo::bar();
}
}
fn main() {
bar_caller();
}