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