Sign in
fuchsia
/
third_party
/
rust
/
daafeb35b731a599fc8b6c4cf37b81f838dae319
/
.
/
src
/
test
/
ui
/
const-generics
/
const-param-type-depends-on-type-param-ungated.rs
blob: af5e8f49754e819ee8cb97fbe554ae156e80c2aa [
file
] [
log
] [
blame
]
use
std
::
marker
::
PhantomData
;
struct
B
<
T
,
const
N
:
T
>(
PhantomData
<[
T
;
N
]>);
//~ ERROR const generics are unstable
//~^ ERROR const parameters cannot depend on type parameters
fn
main
()
{}