Skip to content

Commit 72afe51

Browse files
icefoxenSimonSapin
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 cc6f394 commit 72afe51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/convert.rs

+3
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)