Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-fn-in-const-a.rs
blob: d4ceae2963b34304a0f613db71f904eeb664169a [
file
] [
log
] [
blame
]
// Check that we check fns appearing in constant declarations.
// Issue #22382.
const
MOVE
:
fn
(&
String
)
->
String
=
{
fn
broken
(
x
:
&
String
)
->
String
{
return
*
x
//~ ERROR cannot move
}
broken
};
fn
main
()
{
}