about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-12-10 23:35:53 -0800
committerEsteban Küber <esteban@kuber.com.ar>2017-12-14 22:51:42 -0800
commitc60aab29f1a84b799d4b2a27ed26eeda29438eda (patch)
tree0e92783df5f21256b5059f20f9eed554364b3d90 /src/test/parse-fail
parent933103190950c97b966e789e9206bff2f7bd6118 (diff)
downloadrust-c60aab29f1a84b799d4b2a27ed26eeda29438eda.tar.gz
rust-c60aab29f1a84b799d4b2a27ed26eeda29438eda.zip
When attempting to write str with single quote suggest double quotes
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/lex-bad-char-literals-3.rs2
-rw-r--r--src/test/parse-fail/lex-bad-char-literals-5.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/parse-fail/lex-bad-char-literals-3.rs b/src/test/parse-fail/lex-bad-char-literals-3.rs
index 92432dc8b63..464e75ec582 100644
--- a/src/test/parse-fail/lex-bad-char-literals-3.rs
+++ b/src/test/parse-fail/lex-bad-char-literals-3.rs
@@ -12,5 +12,5 @@
 
 // This test needs to the last one appearing in this file as it kills the parser
 static c: char =
-    '●●' //~ ERROR: character literal may only contain one codepoint: '●
+    '●●' //~ ERROR: character literal may only contain one codepoint
 ;
diff --git a/src/test/parse-fail/lex-bad-char-literals-5.rs b/src/test/parse-fail/lex-bad-char-literals-5.rs
index 5259175b186..aa166881d89 100644
--- a/src/test/parse-fail/lex-bad-char-literals-5.rs
+++ b/src/test/parse-fail/lex-bad-char-literals-5.rs
@@ -12,5 +12,5 @@
 //
 // This test needs to the last one appearing in this file as it kills the parser
 static c: char =
-    '\x10\x10'  //~ ERROR: character literal may only contain one codepoint: '\x10
+    '\x10\x10'  //~ ERROR: character literal may only contain one codepoint
 ;