#![feature(generic_const_exprs)] #![allow(incomplete_features)] trait Bar {} impl Bar for A<{ 6 + 1 }> {} struct A where A: Bar; fn main() { let _ = A; //~ERROR the trait bound }