Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
traits
/
const-traits
/
conditionally-const-in-struct-args.rs
blob: 0c644694585a6a952326b26c6266bc57d268d55c [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags: -Znext-solver
//@ known-bug: #132067
//@ check-pass
#![
feature
(
const_trait_impl
)]
struct
S
;
#[
const_trait
]
trait
Trait
<
const
N
:
u32
>
{}
const
fn
f
<
T
:
Trait
<
{
struct
I
<
U
:
[
const
]
Trait
<
0
>>(
U
);
0
},
>,
>()
{
}
pub
fn
main
()
{}