Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
const-generics
/
impl-const-generic-struct.rs
blob: 87572e51e8142df6b04535d82dadc2cf3d051323 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
const_generics
)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
struct
S
<
const
X
:
u32
>;
impl
<
const
X
:
u32
>
S
<
X
>
{
fn
x
()
->
u32
{
X
}
}
fn
main
()
{
assert_eq
!(
S
::<
19
>::
x
(),
19
);
}