rust/src/test/ui/issues/issue-16338.stderr
2019-12-30 14:05:17 +01:00

15 lines
448 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-16338.rs:7:9
|
LL | let Slice { data: data, len: len } = "foo";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----- this expression has type `&str`
| |
| expected `str`, found struct `Slice`
|
= note: expected type `str`
found struct `Slice<_>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.