summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-53692.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-53692.stderr')
-rw-r--r--tests/ui/suggestions/issue-53692.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-53692.stderr b/tests/ui/suggestions/issue-53692.stderr
new file mode 100644
index 000000000..3a1b624f4
--- /dev/null
+++ b/tests/ui/suggestions/issue-53692.stderr
@@ -0,0 +1,26 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-53692.rs:7:33
+ |
+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
+ |
+ = note: expected struct `Vec<i32>`
+ found reference `&[i32]`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-53692.rs:14:26
+ |
+LL | let string: String = s.clone();
+ | ------ ^^-----^^
+ | | | |
+ | | | help: try using a conversion method: `to_string`
+ | | expected struct `String`, found `&str`
+ | expected due to this
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.