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