rust/tests/ui/traits/const-traits/const-bound-in-host.rs
2024-11-03 18:59:31 +00:00

15 lines
188 B
Rust

//@ compile-flags: -Znext-solver
//@ check-pass
#![feature(const_trait_impl)]
#[const_trait] trait Foo {
fn foo();
}
fn foo<T: const Foo>() {
const { T::foo() }
}
fn main() {}