File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 138138//!
139139//! Call an async function from the main function:
140140//!
141- //! ```
141+ #![ cfg_attr( feature = "attributes" , doc = "```" ) ]
142+ #![ cfg_attr( not( feature = "attributes" ) , doc = "```rust,ignore" ) ]
142143//! async fn say_hello() {
143144//! println!("Hello, world!");
144145//! }
151152//!
152153//! Await two futures concurrently, and return a tuple of their output:
153154//!
154- //! ```
155+ #![ cfg_attr( all( feature = "unstable" , feature = "attributes" ) , doc = "```" ) ]
156+ #![ cfg_attr( not( all( feature = "unstable" , feature = "attributes" ) ) , doc = "```rust,ignore" ) ]
155157//! use async_std::prelude::*;
156158//!
157159//! #[async_std::main]
164166//!
165167//! Create a UDP server that echoes back each received message to the sender:
166168//!
167- //! ```no_run
169+ #![ cfg_attr( feature = "attributes" , doc = "```no_run" ) ]
170+ #![ cfg_attr( not( feature = "attributes" ) , doc = "```rust,ignore" ) ]
168171//! use async_std::net::UdpSocket;
169172//!
170173//! #[async_std::main]
You can’t perform that action at this time.
0 commit comments