Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
run-make
/
const-trait-stable-toolchain
/
const-super-trait.rs
blob: 2371dfc0e6d089cbc0544019d6f06aa436c68a2a [
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
()
{}