We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706d098 commit c876de4Copy full SHA for c876de4
1 file changed
library/core/src/arch.rs
@@ -95,11 +95,13 @@ pub fn breakpoint() {
95
/// ## Example
96
/// ```
97
/// #![feature(return_address)]
98
-/// # #[cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
99
-/// # {
+///
+/// # fn run_test() {
100
/// let addr = core::arch::return_address!();
101
/// println!("Caller is {addr:p}");
102
/// # }
103
+/// # #[cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
104
+/// # run_test()
105
106
#[unstable(feature = "return_address", issue = "154966")]
107
#[allow_internal_unstable(core_intrinsics)]
0 commit comments