libcore: allow deprecated valN
methods on doc tests
This commit is contained in:
parent
8720174bf2
commit
17a9c2764f
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue