]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/const_evaluatable_checked/from-sig.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / const_evaluatable_checked / from-sig.rs
CommitLineData
1b1a35ee
XL
1// run-pass
2#![feature(const_generics, const_evaluatable_checked)]
3#![allow(incomplete_features)]
4
5struct Foo<const B: bool>;
6
7fn test<const N: usize>() -> Foo<{ N > 10 }> {
8 Foo
9}
10
11fn main() {
12 let _: Foo<true> = test::<12>();
13 let _: Foo<false> = test::<9>();
14}