2024-10-21 15:16:33 -05:00
|
|
|
//@ compile-flags: -Znext-solver
|
|
|
|
//@ check-pass
|
|
|
|
|
2024-10-30 13:03:44 -05:00
|
|
|
#![feature(const_trait_impl)]
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
#[const_trait] trait Foo {
|
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<T: const Foo>() {
|
|
|
|
const { T::foo() }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|