rust/tests/ui/const-generics/defaults/default-param-wf-concrete.rs
lcnr abcaf30f9b implement ConstEvaluatable goals in new solver
we don't yet handle `generic_const_exprs`, someone else
can do that :3
2023-07-04 15:54:18 +02:00

7 lines
167 B
Rust

// revisions: old next
//[next] compile-flags: -Ztrait-solver=next
struct Foo<const N: u8 = { 255 + 1 }>;
//~^ ERROR evaluation of constant value failed
fn main() {}