Skip to content

Commit 9ebcc02

Browse files
committed
---
yaml --- r: 226925 b: refs/heads/master c: b0b2952 h: refs/heads/master i: 226923: 96258a5 v: v3
1 parent d72c13d commit 9ebcc02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 75c6428e1bf2f5564392276642d962163d8a9809
2+
refs/heads/master: b0b29521896d280a2f5340edc901a812ad618266
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc_borrowck/diagnostics.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ It can also be fixed by using a type with interior mutability, such as `Cell` or
184184
`RefCell`:
185185
186186
```
187-
let y: Cell<_> = Cell::new(1);
187+
let x: i64 = 1;
188+
let y: Box<Cell<_>> = Box::new(Cell::new(x));
188189
y.set(2);
189190
```
190191
"##,

0 commit comments

Comments
 (0)