rust/tests/ui/suggestions/issue-53692.stderr

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

27 lines
1008 B
Plaintext
Raw Normal View History

2018-09-09 07:05:46 -05:00
error[E0308]: mismatched types
2022-07-10 12:19:45 -05:00
--> $DIR/issue-53692.rs:7:33
2018-09-09 07:05:46 -05:00
|
2022-07-10 12:19:45 -05:00
LL | let items_clone: Vec<i32> = ref_items.clone();
| -------- ^^^^^^^^^^-----^^
| | | |
| | | help: try using a conversion method: `to_vec`
| | expected struct `Vec`, found `&[i32]`
| expected due to this
2018-09-09 07:05:46 -05:00
|
= note: expected struct `Vec<i32>`
found reference `&[i32]`
2018-09-09 07:05:46 -05:00
error[E0308]: mismatched types
2022-07-10 12:19:45 -05:00
--> $DIR/issue-53692.rs:14:26
2018-09-09 07:05:46 -05:00
|
2022-07-10 12:19:45 -05:00
LL | let string: String = s.clone();
| ------ ^^-----^^
| | | |
| | | help: try using a conversion method: `to_string`
| | expected struct `String`, found `&str`
| expected due to this
2018-09-09 07:05:46 -05:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.