mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
16 lines
243 B
Rust
16 lines
243 B
Rust
//@ compile-flags: -Znext-solver
|
|
//@ check-pass
|
|
|
|
#![feature(const_trait_impl, effects)]
|
|
//~^ WARN the feature `effects` is incomplete
|
|
|
|
#[const_trait] trait Foo {
|
|
fn foo();
|
|
}
|
|
|
|
fn foo<T: const Foo>() {
|
|
const { T::foo() }
|
|
}
|
|
|
|
fn main() {}
|