]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/inherent-impl-const-bounds.rs
Rollup merge of #100921 - ChayimFriedman2:and-eager-eval, r=JohnTitor
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / inherent-impl-const-bounds.rs
1 // check-pass
2 #![feature(const_trait_impl)]
3
4 struct S;
5
6 trait A {}
7 trait B {}
8
9 impl const A for S {}
10 impl const B for S {}
11
12 impl S {
13     const fn a<T: ~const A>() where T: ~const B {
14
15     }
16 }
17
18 const _: () = S::a::<S>();
19
20 fn main() {}