Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
assoc-type-const-bound-usage.rs
blob: f41c1051fceaa4dfdb6a195f3e4c0fa6e1936206 [
file
] [
log
] [
blame
]
// known-bug: #110395
// FIXME check-pass
#![
feature
(
const_trait_impl
,
effects
)]
#[
const_trait
]
trait
Foo
{
type
Assoc
:
~
const
Foo
;
fn
foo
()
{}
}
const
fn
foo
<
T
:
~
const
Foo
>()
{
<
T
as
Foo
>::
Assoc
::
foo
();
}
fn
main
()
{}