about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Beberweil <christoph.beberweil@protonmail.com>2023-11-24 17:47:31 +0100
committerChristoph Beberweil <christoph.beberweil@protonmail.com>2023-11-24 17:47:31 +0100
commitf9c6335a0f1a2a0fb17a67d0aa72eae63bbd8a3f (patch)
treebba88a8ab28f70393f2891f430aff1d6d584bb72 /tests
parentbce869f0c05ffe2ce341e79e2f4cf9c0a06078c1 (diff)
downloadrust-f9c6335a0f1a2a0fb17a67d0aa72eae63bbd8a3f.tar.gz
rust-f9c6335a0f1a2a0fb17a67d0aa72eae63bbd8a3f.zip
feat: 7125 code snippets are wrapped in backticks
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/single_element_loop.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/single_element_loop.stderr b/tests/ui/single_element_loop.stderr
index c45f36b1d1c..952d704143a 100644
--- a/tests/ui/single_element_loop.stderr
+++ b/tests/ui/single_element_loop.stderr
@@ -32,25 +32,25 @@ LL +         dbg!(item);
 LL +     }
    |
 
-error: this loops only once with item being 0..5
+error: this loops only once with `item` being `0..5`
   --> $DIR/single_element_loop.rs:16:17
    |
 LL |     for item in &[0..5] {
    |                 ^^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
 
-error: this loops only once with item being 0..5
+error: this loops only once with `item` being `0..5`
   --> $DIR/single_element_loop.rs:20:17
    |
 LL |     for item in [0..5].iter_mut() {
    |                 ^^^^^^^^^^^^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
 
-error: this loops only once with item being 0..5
+error: this loops only once with `item` being `0..5`
   --> $DIR/single_element_loop.rs:24:17
    |
 LL |     for item in [0..5] {
    |                 ^^^^^^ help: did you mean to iterate over the range instead?: `0..5`
 
-error: this loops only once with item being 0..5
+error: this loops only once with `item` being `0..5`
   --> $DIR/single_element_loop.rs:28:17
    |
 LL |     for item in [0..5].into_iter() {