mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
15 lines
297 B
Rust
15 lines
297 B
Rust
![]() |
//@ compile-flags: -Znext-solver
|
||
|
#![feature(const_trait_impl, effects)]
|
||
|
//~^ WARN the feature `effects` is incomplete
|
||
|
|
||
|
#[const_trait] trait Foo {
|
||
|
fn foo();
|
||
|
}
|
||
|
|
||
|
const fn foo<T: ~const Foo>() {
|
||
|
const { T::foo() }
|
||
|
//~^ ERROR the trait bound `T: const Foo` is not satisfied
|
||
|
}
|
||
|
|
||
|
fn main() {}
|