Skip to content

Commit 7a5739f

Browse files
icefoxenpietroalbini
authored andcommitted
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...
1 parent 4c872a6 commit 7a5739f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/convert.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ pub trait TryInto<T>: Sized {
413413
/// As described, [`i32`] implements `TryFrom<i64>`:
414414
///
415415
/// ```
416+
/// #![feature(try_from)]
417+
/// use std::convert::TryFrom;
418+
///
416419
/// let big_number = 1_000_000_000_000i64;
417420
/// // Silently truncates `big_number`, requires detecting
418421
/// // and handling the truncation after the fact.

0 commit comments

Comments
 (0)