fix import nit for long diagnostics on E0387
This commit is contained in:
parent
78d28336fe
commit
f0419661f0
1 changed files with 3 additions and 1 deletions
|
@ -138,8 +138,10 @@ interior mutability through a shared reference. Our example's `mutable` function
|
|||
could be redefined as below:
|
||||
|
||||
```
|
||||
use std::cell::Cell;
|
||||
|
||||
fn mutable() {
|
||||
let x = std::cell::Cell::new(0u32);
|
||||
let x = Cell::new(0u32);
|
||||
foo(|| x.set(2));
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue