about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2020-01-22 23:37:03 +0100
committerLinus Färnstrand <faern@faern.net>2020-01-23 20:55:06 +0100
commit002c7897a6c92397f6682bf7e9e86c9b4efd5c51 (patch)
tree973b1381a48d1ea71e9a23ac0b9dfecd18235b0f
parent4d9e90d2a5146e3f8639b53f29e210be94b30933 (diff)
downloadrust-002c7897a6c92397f6682bf7e9e86c9b4efd5c51.tar.gz
rust-002c7897a6c92397f6682bf7e9e86c9b4efd5c51.zip
Unlock assoc_int_consts in documentation examples using it
-rw-r--r--src/libcore/num/mod.rs4
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, "
 ```"),