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
999 B
Plaintext
Raw Normal View History

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