Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
}