diff --git a/src/libcore/tuple/mod.rs b/src/libcore/tuple/mod.rs index 89d07a61da80d..8160424be292c 100644 --- a/src/libcore/tuple/mod.rs +++ b/src/libcore/tuple/mod.rs @@ -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: