Skip to content

Commit 17a9c27

Browse files
author
Jorge Aparicio
committed
libcore: allow deprecated valN methods on doc tests
1 parent 8720174 commit 17a9c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/tuple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
//! Using methods:
3939
//!
4040
//! ```
41+
//! #[allow(deprecated)]
42+
//! # fn main() {
4143
//! let pair = ("pi", 3.14f64);
4244
//! assert_eq!(pair.val0(), "pi");
4345
//! assert_eq!(pair.val1(), 3.14f64);
46+
//! # }
4447
//! ```
4548
//!
4649
//! Using traits implemented for tuples:

0 commit comments

Comments
 (0)