]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc/process-termination.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / rustdoc / process-termination.rs
index 31ae0143d4771aee9492a0333a3ad102f2bc6568..32258792b6e8b88c601b50ac6d4a53b5e84d69be 100644 (file)
 /// Err("This is returned from `main`, leading to panic")?;
 /// Ok::<(), &'static str>(())
 /// ```
-///
-/// This also works with `Option<()>`s now:
-///
-/// ```rust
-/// Some(())
-/// ```
-///
-/// ```rust,should_panic
-/// let x: &[u32] = &[];
-/// let _ = x.iter().next()?;
-/// Some(())
-/// ```
 pub fn check_process_termination() {}