add editable to problem 4 in zh-CN/src/lifetime/advance.md

This commit is contained in:
Kibi
2024-08-04 04:47:02 +00:00
parent 8e0def5f08
commit 21188323d3

View File

@ -101,7 +101,7 @@ impl<'a> PartialEq<i32> for &'a T {
这里只能使用更高级别的约束,因为引用的生命周期比函数上任何可能的生命周期参数都短。
4. 🌟🌟🌟
```rust
```rust,editable
/* 添加 HRTB 使下面代码正常运行! */
fn call_on_ref_zero<'a, F>(f: F) where F: Fn(&'a i32) {
let zero = 0;