blob: d4ceae2963b34304a0f613db71f904eeb664169a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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() {
}
|