about summary refs log tree commit diff
path: root/src/test/ui/inference/str-as-char.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/inference/str-as-char.fixed')
-rw-r--r--src/test/ui/inference/str-as-char.fixed10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/inference/str-as-char.fixed b/src/test/ui/inference/str-as-char.fixed
deleted file mode 100644
index 6aea809cbdb..00000000000
--- a/src/test/ui/inference/str-as-char.fixed
+++ /dev/null
@@ -1,10 +0,0 @@
-// When a char literal is used where a str should be,
-// suggest changing to double quotes.
-
-// run-rustfix
-
-fn main() {
-    let _: &str = "a";   //~ ERROR mismatched types
-    let _: &str = "\"\"\""; //~ ERROR character literal may only contain one codepoint
-    let _: &str = "\"\"\""; //~ ERROR character literal may only contain one codepoint
-}