blob: 6eaa7d4d9bc9f4e13f7b1b702f1d4413971d9049 [file] [log] [blame]
//@ needs-asm-support
#![feature(naked_functions)]
use std::arch::asm;
#[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
//~^ ERROR `#[track_caller]` requires Rust ABI
#[naked]
extern "C" fn f() {
unsafe {
asm!("", options(noreturn));
}
}
struct S;
impl S {
#[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
//~^ ERROR `#[track_caller]` requires Rust ABI
#[naked]
extern "C" fn g() {
unsafe {
asm!("", options(noreturn));
}
}
}
fn main() {}