Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
default-method-body-is-const-same-trait-ck.rs
blob: da27724007d276ceae5e70c2ed6c85756077ed22 [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
,
effects
)]
#[
const_trait
]
pub
trait
Tr
{
fn
a
(&
self
)
{}
fn
b
(&
self
)
{
().
a
()
//~^ ERROR the trait bound
}
}
impl
Tr
for
()
{}
fn
main
()
{}