fn call_with_fnonce(f: F) where F: FnOnce(), { f(); } let text = String::from("hello"); let consume = || drop(text); call_with_fnonce(consume); // text 已被移动,不能再使用