Skip to content

Commit e1add59

Browse files
committed
Enable checked_norem_div in doctests
1 parent a3d3de7 commit e1add59

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/num/int_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ macro_rules! int_impl {
676676
/// Basic usage:
677677
///
678678
/// ```
679+
/// #![feature(checked_norem_div)]
679680
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MIN + 1).checked_norem_div(-1), Some(", stringify!($Max), "));")]
680681
#[doc = concat!("assert_eq!((-5", stringify!($SelfT), ").checked_norem_div(2), None);")]
681682
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.checked_norem_div(-1), None);")]

library/core/src/num/uint_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ macro_rules! uint_impl {
662662
/// Basic usage:
663663
///
664664
/// ```
665+
/// #![feature(checked_norem_div)]
665666
#[doc = concat!("assert_eq!(128", stringify!($SelfT), ".checked_norem_div(2), Some(64));")]
666667
#[doc = concat!("assert_eq!(129", stringify!($SelfT), ".checked_norem_div(2), None);")]
667668
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_norem_div(0), None);")]

0 commit comments

Comments
 (0)