@@ -192,8 +192,8 @@ macro_rules! system {
192
192
///
193
193
/// Using units for the wrong quantity will cause a compile error:
194
194
///
195
- #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) , doc = " ```rust,compile_fail" ) ]
196
- #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) ) , doc = " ```rust,ignore" ) ]
195
+ #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) , doc = " ```rust,compile_fail" ) ]
196
+ #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) ) , doc = " ```rust,ignore" ) ]
197
197
/// # use uom::si::f32::*;
198
198
/// # use uom::si::time::second;
199
199
/// // error[E0277]: the trait bound `second: length::Unit` is not satisfied
@@ -202,17 +202,17 @@ macro_rules! system {
202
202
///
203
203
/// Mixing quantities will also cause a compile error:
204
204
///
205
- #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) , doc = " ```rust,compile_fail" ) ]
206
- #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) ) , doc = " ```rust,ignore" ) ]
205
+ #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) , doc = " ```rust,compile_fail" ) ]
206
+ #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) ) , doc = " ```rust,ignore" ) ]
207
207
/// # use uom::si::f32::*;
208
208
/// # use uom::si::length::meter;
209
209
/// # use uom::si::time::second;
210
210
/// // error[E0308]: mismatched types
211
211
/// let r = Length::new::<meter>(1.0) + Time::new::<second>(1.0);
212
212
/// ```
213
213
///
214
- #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) , doc = " ```rust,compile_fail" ) ]
215
- #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) ) , doc = " ```rust,ignore" ) ]
214
+ #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) , doc = " ```rust,compile_fail" ) ]
215
+ #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) ) , doc = " ```rust,ignore" ) ]
216
216
/// # use uom::si::f32::*;
217
217
/// # use uom::si::length::meter;
218
218
/// # use uom::si::time::second;
@@ -576,8 +576,8 @@ macro_rules! system {
576
576
///
577
577
/// The input type must have dimensions divisible by three:
578
578
///
579
- #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) , doc = " ```rust,compile_fail" ) ]
580
- #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) ) , doc = " ```rust,ignore" ) ]
579
+ #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) , doc = " ```rust,compile_fail" ) ]
580
+ #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) ) , doc = " ```rust,ignore" ) ]
581
581
/// # use uom::si::f32::*;
582
582
/// # use uom::si::area::square_meter;
583
583
/// // error[E0271]: type mismatch resolving ...
@@ -737,8 +737,8 @@ macro_rules! system {
737
737
///
738
738
/// The input type must have dimensions divisible by two:
739
739
///
740
- #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) , doc = " ```rust,compile_fail" ) ]
741
- #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1.20.0 " ) ) ) , doc = " ```rust,ignore" ) ]
740
+ #[ cfg_attr( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) , doc = " ```rust,compile_fail" ) ]
741
+ #[ cfg_attr( not( all( feature = "si" , feature = "f32" , not( feature = "1_20_0 " ) ) ) , doc = " ```rust,ignore" ) ]
742
742
/// # use uom::si::f32::*;
743
743
/// # use uom::si::length::meter;
744
744
/// // error[E0271]: type mismatch resolving ...
0 commit comments