]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs
1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 struct Foo
<const N
: usize, const M
: usize = { N + 1 }
>;
5 fn no_constraining() -> Foo
<10> {
9 pub fn different_than_default() -> Foo
<10> {
11 //~^ error: mismatched types