Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
const-generics
/
const-param-from-outer-fn.rs
blob: 6534bcf5ce64c91bad8eb7c288860f9209e1f5fe [
file
] [
log
] [
blame
]
#![
feature
(
const_generics
)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
fn
foo
<
const
X
:
u32
>()
{
fn
bar
()
->
u32
{
X
//~ ERROR can't use generic parameters from outer function
}
}
fn
main
()
{}