]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/wrong-escape-of-curly-braces.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / wrong-escape-of-curly-braces.stderr
index 346eba04c6500d671ce2bc3673c47ff6948f57bd..1406b795ba8c34484953d59c4da74750ec977043 100644 (file)
@@ -1,7 +1,7 @@
 error: unknown character escape: {
   --> $DIR/wrong-escape-of-curly-braces.rs:3:17
    |
-LL |     let bad = "/{it is wrong/}";
+LL |     let bad = "\{it is wrong\}";
    |                 ^ unknown character escape
    |
    = help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
@@ -9,7 +9,7 @@ LL |     let bad = "/{it is wrong/}";
 error: unknown character escape: }
   --> $DIR/wrong-escape-of-curly-braces.rs:3:30
    |
-LL |     let bad = "/{it is wrong/}";
+LL |     let bad = "\{it is wrong\}";
    |                              ^ unknown character escape
    |
    = help: if used in a formatting string, curly braces are escaped with `{{` and `}}`