@@ -337,14 +337,10 @@ Basic usage:
337337#![feature(wrapping_int_impl)]
338338use std::num::Wrapping;
339339
340- assert_eq!(<Wrapping<" , stringify!( $t) , ">>::min_value(), " ,
341- "Wrapping(" , stringify!( $t) , "::min_value()));
340+ assert_eq!(<Wrapping<" , stringify!( $t) , ">>::MIN, Wrapping(" , stringify!( $t) , "::MIN));
342341```" ) ,
343342 #[ unstable( feature = "wrapping_int_impl" , issue = "32463" ) ]
344- #[ inline]
345- pub const fn min_value( ) -> Self {
346- Wrapping ( <$t>:: min_value( ) )
347- }
343+ pub const MIN : Self = Self ( <$t>:: MIN ) ;
348344 }
349345
350346 doc_comment! {
@@ -358,14 +354,10 @@ Basic usage:
358354#![feature(wrapping_int_impl)]
359355use std::num::Wrapping;
360356
361- assert_eq!(<Wrapping<" , stringify!( $t) , ">>::max_value(), " ,
362- "Wrapping(" , stringify!( $t) , "::max_value()));
357+ assert_eq!(<Wrapping<" , stringify!( $t) , ">>::MAX, Wrapping(" , stringify!( $t) , "::MAX));
363358```" ) ,
364359 #[ unstable( feature = "wrapping_int_impl" , issue = "32463" ) ]
365- #[ inline]
366- pub const fn max_value( ) -> Self {
367- Wrapping ( <$t>:: max_value( ) )
368- }
360+ pub const MAX : Self = Self ( <$t>:: MAX ) ;
369361 }
370362
371363 doc_comment! {
0 commit comments