#![feature(generic_const_exprs)] #![allow(incomplete_features)] pub trait X { const Y: usize; } fn z(t: T) where T: X, [(); T::Y]: , { } fn unit_literals() { z(" "); //~^ ERROR: the trait bound `&str: X` is not satisfied //~| ERROR: unconstrained generic constant } fn main() {}