From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/suggestions/format-borrow.stderr | 75 ---------------------------- 1 file changed, 75 deletions(-) delete mode 100644 src/test/ui/suggestions/format-borrow.stderr (limited to 'src/test/ui/suggestions/format-borrow.stderr') diff --git a/src/test/ui/suggestions/format-borrow.stderr b/src/test/ui/suggestions/format-borrow.stderr deleted file mode 100644 index 8ed2b9c9a..000000000 --- a/src/test/ui/suggestions/format-borrow.stderr +++ /dev/null @@ -1,75 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/format-borrow.rs:2:21 - | -LL | let a: String = &String::from("a"); - | ------ ^^^^^^^^^^^^^^^^^^ expected struct `String`, found `&String` - | | - | expected due to this - | -help: consider removing the borrow - | -LL - let a: String = &String::from("a"); -LL + let a: String = String::from("a"); - | -help: alternatively, consider changing the type annotation - | -LL | let a: &String = &String::from("a"); - | + - -error[E0308]: mismatched types - --> $DIR/format-borrow.rs:4:21 - | -LL | let b: String = &format!("b"); - | ------ ^^^^^^^^^^^^^ expected struct `String`, found `&String` - | | - | expected due to this - | -help: consider removing the borrow - | -LL - let b: String = &format!("b"); -LL + let b: String = format!("b"); - | -help: alternatively, consider changing the type annotation - | -LL | let b: &String = &format!("b"); - | + - -error[E0308]: mismatched types - --> $DIR/format-borrow.rs:6:21 - | -LL | let c: String = &mut format!("c"); - | ------ ^^^^^^^^^^^^^^^^^ expected struct `String`, found `&mut String` - | | - | expected due to this - | -help: consider removing the borrow - | -LL - let c: String = &mut format!("c"); -LL + let c: String = format!("c"); - | -help: alternatively, consider changing the type annotation - | -LL | let c: &mut String = &mut format!("c"); - | ++++ - -error[E0308]: mismatched types - --> $DIR/format-borrow.rs:8:21 - | -LL | let d: String = &mut (format!("d")); - | ------ ^^^^^^^^^^^^^^^^^^^ expected struct `String`, found `&mut String` - | | - | expected due to this - | -help: consider removing the borrow - | -LL - let d: String = &mut (format!("d")); -LL + let d: String = format!("d")); - | -help: alternatively, consider changing the type annotation - | -LL | let d: &mut String = &mut (format!("d")); - | ++++ - -error: aborting due to 4 previous errors - -For more information about this error, try `rustc --explain E0308`. -- cgit v1.2.3