Skip to content

Commit 002c789

Browse files
committed
Unlock assoc_int_consts in documentation examples using it
1 parent 4d9e90d commit 002c789

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/num/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ macro_rules! int_impl {
252252
Basic usage:
253253
254254
```
255+
#![feature(assoc_int_consts)]
255256
", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, ", stringify!($Min), ");",
256257
$EndFeature, "
257258
```"),
@@ -267,6 +268,7 @@ $EndFeature, "
267268
Basic usage:
268269
269270
```
271+
#![feature(assoc_int_consts)]
270272
", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($Max), ");",
271273
$EndFeature, "
272274
```"),
@@ -2361,6 +2363,7 @@ macro_rules! uint_impl {
23612363
Basic usage:
23622364
23632365
```
2366+
#![feature(assoc_int_consts)]
23642367
", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, 0);", $EndFeature, "
23652368
```"),
23662369
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
@@ -2375,6 +2378,7 @@ Basic usage:
23752378
Basic usage:
23762379
23772380
```
2381+
#![feature(assoc_int_consts)]
23782382
", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($MaxV), ");",
23792383
$EndFeature, "
23802384
```"),

0 commit comments

Comments
 (0)