Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
const-generics
/
impl-const-generic-struct.rs
blob: 7a0c0f2be5d7ac6cc1a54715d21d3e77fe9db9b3 [
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
);
}