#![feature(generic_const_exprs)] use std::str::FromStr; pub struct If; pub trait True {} impl True for If {} pub struct FixedI32; impl FromStr for FixedI32 where If<{ FRAC <= 32 }>: True, { type Err = (); fn from_str(_s: &str) -> Result { unimplemented!() } }