Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
const-generics
/
adt_const_params
/
116308.rs
blob: 9ea7022e29c8aef521b71c7bf1f9adb38bbb0b1a [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
adt_const_params
)]
// Regression test for #116308
pub
trait
Identity
{
type
Identity
;
}
impl
<
T
>
Identity
for
T
{
type
Identity
=
Self
;
}
pub
fn
foo
<
const
X
:
<
i32
as
Identity
>::
Identity
>()
{}
fn
main
()
{
foo
::<
12
>();
}