Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
const-generics
/
const-param-type-depends-on-type-param-ungated.rs
blob: 78bd549ba791a456739aa62a60d2462aa4d8082f [
file
] [
log
] [
blame
]
use
std
::
marker
::
PhantomData
;
struct
B
<
T
,
const
N
:
T
>(
PhantomData
<[
T
;
N
]>);
//~ ERROR const generics are unstable
//~^ ERROR the types of const generic parameters must derive `PartialEq` and `Eq`
fn
main
()
{}