| ------ ^ expected str, found &str
| |
| expected because of this
- |
- = note: expected type `str`
- found type `&str`
error[E0308]: mismatched types
--> $DIR/str-array-assignment.rs:5:27
| |
| expected &str, found str
| help: consider borrowing here: `&s[..2]`
- |
- = note: expected type `&str`
- found type `str`
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/str-array-assignment.rs:7:7
| |
| expected &str, found str
| help: consider borrowing here: `&s[..2]`
- |
- = note: expected type `&str`
- found type `str`
error: aborting due to 4 previous errors
-Some errors occurred: E0277, E0308.
+Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.