]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/error-with-naked.rs
Use `summary_opts()` in another spot
[rust.git] / src / test / ui / rfc-2091-track-caller / error-with-naked.rs
1 #![feature(naked_functions)]
2
3 #[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
4 #[naked]
5 fn f() {}
6
7 struct S;
8
9 impl S {
10     #[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]`
11     #[naked]
12     fn g() {}
13 }
14
15 fn main() {}