Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
issues
/
issue-66596-impl-trait-for-str-const-arg.rs
blob: 41c5eaa0cd9c3534da86f772f7572d6eae495d02 [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
adt_const_params
,
unsized_const_params
)]
#![
allow
(
incomplete_features
)]
trait
Trait
<
const
NAME
:
&
'
static
str
>
{
type
Assoc
;
}
impl
Trait
<
"0"
>
for
()
{
type
Assoc
=
();
}
fn
main
()
{
let
_
:
<()
as
Trait
<
"0"
>>::
Assoc
=
();
}