Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
const-traits
/
call-const-in-conditionally-const.rs
blob: 4e8c2cd171e6c6371a61cbeed416056469d0f690 [
file
] [
log
] [
blame
]
//@ compile-flags: -Znext-solver
#![
feature
(
const_trait_impl
)]
#[
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
()
{}