Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 2d4cdc2

Browse files
committed
Add error message
1 parent 7687a2e commit 2d4cdc2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

presentations/intro-to-rust/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,18 @@
352352
* Have someone read the error message
353353
* Whenever anyone gets an error message, we'll read it out loud and talk about it so everyone can learn!
354354

355+
--
356+
357+
```
358+
error[E0384]: re-assignment of immutable variable `apples`
359+
--> src/main.rs:3:5
360+
|
361+
2 | let apples = 100;
362+
| ------ first assignment to `apples`
363+
3 | apples += 50;
364+
| ^^^^^^^^^^^^ re-assignment of immutable variable
365+
```
366+
355367
---
356368
class: middle, left
357369

0 commit comments

Comments
 (0)