diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-01-22 23:37:03 +0100 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2020-01-23 20:55:06 +0100 |
| commit | 002c7897a6c92397f6682bf7e9e86c9b4efd5c51 (patch) | |
| tree | 973b1381a48d1ea71e9a23ac0b9dfecd18235b0f | |
| parent | 4d9e90d2a5146e3f8639b53f29e210be94b30933 (diff) | |
| download | rust-002c7897a6c92397f6682bf7e9e86c9b4efd5c51.tar.gz rust-002c7897a6c92397f6682bf7e9e86c9b4efd5c51.zip | |
Unlock assoc_int_consts in documentation examples using it
| -rw-r--r-- | src/libcore/num/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index e717d0e42bb..7480e93421b 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -252,6 +252,7 @@ macro_rules! int_impl { Basic usage: ``` +#![feature(assoc_int_consts)] ", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, ", stringify!($Min), ");", $EndFeature, " ```"), @@ -267,6 +268,7 @@ $EndFeature, " Basic usage: ``` +#![feature(assoc_int_consts)] ", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($Max), ");", $EndFeature, " ```"), @@ -2361,6 +2363,7 @@ macro_rules! uint_impl { Basic usage: ``` +#![feature(assoc_int_consts)] ", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, 0);", $EndFeature, " ```"), #[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")] @@ -2375,6 +2378,7 @@ Basic usage: Basic usage: ``` +#![feature(assoc_int_consts)] ", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($MaxV), ");", $EndFeature, " ```"), |
