Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
traits
/
const-traits
/
default-method-body-is-const-same-trait-ck.rs
blob: eb2c472e3bf7b7c24cd6961bcf81e183a05a460a [
file
] [
log
] [
blame
]
//@ compile-flags: -Znext-solver
#![
feature
(
const_trait_impl
)]
#[
const_trait
]
pub
trait
Tr
{
fn
a
(&
self
)
{}
fn
b
(&
self
)
{
().
a
()
//~^ ERROR the trait bound `(): [const] Tr` is not satisfied
}
}
impl
Tr
for
()
{}
fn
main
()
{}