Sign in
fuchsia
/
third_party
/
rust
/
f22bb2e72267890782897c208bbc9114d023dfc7
/
.
/
src
/
test
/
ui
/
const-generics
/
cannot-infer-const-args.rs
blob: e1061c6d1a33d7a122951e24814f543cc2c36c5d [
file
] [
log
] [
blame
]
#![
feature
(
const_generics
)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
fn
foo
<
const
X
:
usize
>()
->
usize
{
0
}
fn
main
()
{
foo
();
//~ ERROR type annotations needed
}