1
Fork 0

libcore: allow deprecated valN methods on doc tests

This commit is contained in:
Jorge Aparicio 2014-12-09 17:47:11 -05:00
parent 8720174bf2
commit 17a9c2764f

View file

@ -38,9 +38,12 @@
//! Using methods:
//!
//! ```
//! #[allow(deprecated)]
//! # fn main() {
//! let pair = ("pi", 3.14f64);
//! assert_eq!(pair.val0(), "pi");
//! assert_eq!(pair.val1(), 3.14f64);
//! # }
//! ```
//!
//! Using traits implemented for tuples: