We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1deb5 commit 18848caCopy full SHA for 18848ca
src/librustc/diagnostics.rs
@@ -411,6 +411,24 @@ fn main() {
411
See also https://doc.rust-lang.org/book/unsafe.html
412
"##,
413
414
+E0135: 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
432
E0137: r##"
433
This error indicates that the compiler found multiple functions with the
434
`#[main]` attribute. This is an error because there must be a unique entry
0 commit comments