Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
tests
/
run-make
/
const-trait-stable-toolchain
/
const-super-trait.rs
blob: b2ee96d79f70416480751f7f818c038e474c787a [
file
] [
log
] [
blame
]
#![
cfg_attr
(
feature_enabled
,
feature
(
const_trait_impl
))]
trait
Foo
{
fn
a
(&
self
);
}
trait
Bar
:
~
const
Foo
{}
const
fn
foo
<
T
:
~
const
Bar
>(
x
:
&
T
)
{
x
.
a
();
}
fn
main
()
{}