Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
ab1f382ca8fa4a4c0dde58679207f9bec394fa0e
/
.
/
tests
/
ui
/
traits
/
const-traits
/
call-const-in-tilde-const.rs
blob: b6d1517499d6ecacdc43592a1cb15e04f8f0ed57 [
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
()
{}