~jplatte/const-unit-poc

5a62de30d2a04d8b3acec948cf3005e867570fba — Jonas Platte 2 years ago fd0daaa
Update const generics feature flags
2 files changed, 2 insertions(+), 2 deletions(-)

M examples/shouldwork.rs
M src/lib.rs
M examples/shouldwork.rs => examples/shouldwork.rs +1 -1
@@ 1,4 1,4 @@
#![feature(const_generics, const_evaluatable_checked)]
#![feature(adt_const_params, generic_const_exprs)]
#![allow(incomplete_features)]

use const_unit_poc::values::{cm, kg, m, s, N};

M src/lib.rs => src/lib.rs +1 -1
@@ 40,7 40,7 @@
//!   = note: expected struct `Quantity<SiUnit { m: 1_i8, kg: 0_i8, s: 0_i8, A: 0_i8, K: 0_i8, mol: 0_i8, cd: 0_i8 }>`
//!              found struct `Quantity<SiUnit { m: 0_i8, kg: 1_i8, s: 0_i8, A: 0_i8, K: 0_i8, mol: 0_i8, cd: 0_i8 }>`
//! ```
#![feature(const_generics, const_evaluatable_checked, doc_cfg)]
#![feature(adt_const_params, generic_const_exprs, doc_cfg)]
#![allow(incomplete_features)]
#![cfg_attr(feature = "non_ascii", feature(non_ascii_idents))]