]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2091-track-caller/error-with-naked.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / rfc-2091-track-caller / error-with-naked.rs
CommitLineData
cdc7bbd5 1// needs-asm-support
fc512014 2#![feature(asm, naked_functions)]
e74abb32 3
ba9703b0 4#[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
e74abb32 5#[naked]
fc512014
XL
6extern "C" fn f() {
7 asm!("", options(noreturn));
8}
ba9703b0
XL
9
10struct S;
11
12impl S {
13 #[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
14 #[naked]
fc512014
XL
15 extern "C" fn g() {
16 asm!("", options(noreturn));
17 }
ba9703b0 18}
e74abb32
XL
19
20fn main() {}