We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6765d55 + 3b6474a commit 50d5af5Copy full SHA for 50d5af5
zh-CN/src/lifetime/advance.md
@@ -101,7 +101,7 @@ impl<'a> PartialEq<i32> for &'a T {
101
这里只能使用更高级别的约束,因为引用的生命周期比函数上任何可能的生命周期参数都短。
102
103
4. 🌟🌟🌟
104
-```rust
+```rust,editable
105
/* 添加 HRTB 使下面代码正常运行! */
106
fn call_on_ref_zero<'a, F>(f: F) where F: Fn(&'a i32) {
107
let zero = 0;
@@ -237,7 +237,7 @@ struct Ref<'a, T> {
237
## 艰难的练习
238
239
6. 🌟🌟🌟🌟
240
241
/* 使下面代码正常运行 */
242
struct Interface<'a> {
243
manager: &'a mut Manager<'a>
0 commit comments