rust/tests/ui/issues/issue-16338.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
444 B
Plaintext
Raw Normal View History

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