From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/suggestions/issue-53692.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/test/ui/suggestions/issue-53692.rs (limited to 'src/test/ui/suggestions/issue-53692.rs') diff --git a/src/test/ui/suggestions/issue-53692.rs b/src/test/ui/suggestions/issue-53692.rs deleted file mode 100644 index 6f6707be5..000000000 --- a/src/test/ui/suggestions/issue-53692.rs +++ /dev/null @@ -1,20 +0,0 @@ -// run-rustfix -#![allow(unused_variables)] - -fn main() { - let items = vec![1, 2, 3]; - let ref_items: &[i32] = &items; - let items_clone: Vec = ref_items.clone(); - //~^ ERROR mismatched types - - // in that case no suggestion will be triggered - let items_clone_2: Vec = items.clone(); - - let s = "hi"; - let string: String = s.clone(); - //~^ ERROR mismatched types - - // in that case no suggestion will be triggered - let s2 = "hi"; - let string_2: String = s2.to_string(); -} -- cgit v1.2.3