Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
ab1f382ca8fa4a4c0dde58679207f9bec394fa0e
/
.
/
tests
/
ui
/
traits
/
const-traits
/
default-method-body-is-const-same-trait-ck.rs
blob: b3beba08237c12c14b8cf8c8d4f1ae7de57a9796 [
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
()
{}