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 f018d13 commit c92d770Copy full SHA for c92d770
samples/rust/rust_print.rs
@@ -34,7 +34,6 @@ fn arc_print() -> Result {
34
// Uses `dbg` to print, will move `c` (for temporary debugging purposes).
35
dbg!(c);
36
37
- #[cfg(CONFIG_RUST_COERCE_POINTEE)]
38
{
39
use core::fmt::Display;
40
fn arc_dyn_print(arc: &Arc<dyn Display>) {
@@ -50,12 +49,6 @@ fn arc_print() -> Result {
50
49
arc_dyn_print(&a_str_display);
51
}
52
53
- #[cfg(not(CONFIG_RUST_COERCE_POINTEE))]
54
- pr_info!(
55
- "The demonstration for dynamic dispatching through Arc is skipped. "
56
- "To see the print-out from this example, please upgrade your Rust compiler to 1.83.0 or higher.\n"
57
- );
58
-
59
// Pretty-prints the debug formatting with lower-case hexadecimal integers.
60
pr_info!("{:#x?}", a);
61
0 commit comments