]>
git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/issues/issue-88997.rs
1 #![allow(incomplete_features)]
2 #![feature(generic_const_exprs)]
4 struct ConstAssert
<const COND
: bool
>;
6 impl True
for ConstAssert
<true> {}
8 struct Range
<T
: PartialOrd
, const MIN
: T
, const MAX
: T
>(T
)
9 //~^ ERROR the type of const parameters must not depend on other generic parameters
10 //~| ERROR the type of const parameters must not depend on other generic parameters
12 ConstAssert
<{ MIN <= MAX }
>: True
;