Slowly figuring out how rustdoc actually works.
Unfortunately trying to run doctests on my local machine is not really faster than letting Travis do it...
This commit is contained in:
parent
cc6f394d6f
commit
72afe51d81
1 changed files with 3 additions and 0 deletions
|
|
@ -413,6 +413,9 @@ pub trait TryInto<T>: Sized {
|
|||
/// As described, [`i32`] implements `TryFrom<i64>`:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(try_from)]
|
||||
/// use std::convert::TryFrom;
|
||||
///
|
||||
/// let big_number = 1_000_000_000_000i64;
|
||||
/// // Silently truncates `big_number`, requires detecting
|
||||
/// // and handling the truncation after the fact.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue