Can't parse fence code in list items
tiensonqin opened this issue · 0 comments
tiensonqin commented
- ```rust
fn do_something(f: Foo) {
println!("{}", f.x);
// f is dropped here
}
fn main() {
let mut foo = Foo { x: 42 };
let f = &mut foo;
//FAILURE:
do_something(foo) // would fail because
// foo cannot be moved while mutably borrowed, and passing will move reference
//FAILURE:
foo.x = 13; //would fail here because
// foo is not modifiable while mutably borrowed
```