Sign in
android
/
toolchain
/
rustc
/
fc8a4ff31fec5a822fe5eb0da3a6f87866072960
/
.
/
src
/
test
/
ui
/
rfc-2632-const-trait-impl
/
super-traits-fail-2.rs
blob: 7b38c15afc20b238a4566626b71dbb2232f4af4d [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
)]
trait
Foo
{
fn
a
(&
self
);
}
trait
Bar
:
~
const
Foo
{}
const
fn
foo
<
T
:
Bar
>(
x
:
&
T
)
{
x
.
a
();
//~^ ERROR the trait bound
//~| ERROR cannot call
}
fn
main
()
{}