File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
branches/tmp/src/librustc Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: 18adf6230e2e229d4d73391cebff060afc5e5aaa
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 18848ca7846fb6f72f6614fea4fd4a4565f8102a
28
+ refs/heads/tmp: d72c3076e1f5099923bdd54f6ab726d796cd8907
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: e6596d0052e79e6393bbee3538bb122930d89887
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
Original file line number Diff line number Diff line change @@ -411,6 +411,24 @@ fn main() {
411
411
See also https://doc.rust-lang.org/book/unsafe.html
412
412
"## ,
413
413
414
+ E0134 : r##"
415
+ You tried to modify the str type, which isn't allowed. Erroneous code
416
+ example:
417
+
418
+ ```
419
+ let s = "salut";
420
+ let c = &mut s[0..1]; // error: modification of string types is not
421
+ // allowed
422
+ ```
423
+
424
+ I you want to modify an str, please use the String type. Example:
425
+
426
+ ```
427
+ let mut s = "salut";
428
+ let mut c = s[0..1].to_owned(); // ok!
429
+ ```
430
+ "## ,
431
+
414
432
E0135 : r##"
415
433
You tried to modify the str type, which isn't allowed. Erroneous code
416
434
example:
@@ -421,7 +439,7 @@ let c = &mut (*s)[0..1]; // error: modification of string types is not
421
439
// allowed
422
440
```
423
441
424
- I you want to modify an str, please use the String type. Example:
442
+ If you want to modify an str, please use the String type. Example:
425
443
426
444
```
427
445
let mut s = "salut";
You can’t perform that action at this time.
0 commit comments