mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
15 lines
188 B
Rust
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() {}
|