about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-08-01 13:11:24 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-08-01 13:11:24 +0000
commite157954cce4497738a728f8c295c71b229d35a66 (patch)
tree70929ac99ff57cedb499cc46a087f4bec17e09a3 /tests/ui/parser/removed-syntax
parent97ac52f579fe1003a162324d448dad43a942b5f5 (diff)
downloadrust-e157954cce4497738a728f8c295c71b229d35a66.tar.gz
rust-e157954cce4497738a728f8c295c71b229d35a66.zip
Fix removed `box_syntax` diagnostic if source isn't available
Diffstat (limited to 'tests/ui/parser/removed-syntax')
-rw-r--r--tests/ui/parser/removed-syntax/removed-syntax-box.stderr10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/parser/removed-syntax/removed-syntax-box.stderr b/tests/ui/parser/removed-syntax/removed-syntax-box.stderr
index 46b891587d5..60c39fd37c4 100644
--- a/tests/ui/parser/removed-syntax/removed-syntax-box.stderr
+++ b/tests/ui/parser/removed-syntax/removed-syntax-box.stderr
@@ -7,7 +7,7 @@ LL |     let _ = box ();
 help: use `Box::new()` instead
    |
 LL |     let _ = Box::new(());
-   |             ~~~~~~~~~~~~
+   |             ~~~~~~~~~  +
 
 error: `box_syntax` has been removed
   --> $DIR/removed-syntax-box.rs:10:13
@@ -18,7 +18,7 @@ LL |     let _ = box 1;
 help: use `Box::new()` instead
    |
 LL |     let _ = Box::new(1);
-   |             ~~~~~~~~~~~
+   |             ~~~~~~~~~ +
 
 error: `box_syntax` has been removed
   --> $DIR/removed-syntax-box.rs:11:13
@@ -29,7 +29,7 @@ LL |     let _ = box T { a: 12, b: 18 };
 help: use `Box::new()` instead
    |
 LL |     let _ = Box::new(T { a: 12, b: 18 });
-   |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+   |             ~~~~~~~~~                  +
 
 error: `box_syntax` has been removed
   --> $DIR/removed-syntax-box.rs:12:13
@@ -40,7 +40,7 @@ LL |     let _ = box [5; 30];
 help: use `Box::new()` instead
    |
 LL |     let _ = Box::new([5; 30]);
-   |             ~~~~~~~~~~~~~~~~~
+   |             ~~~~~~~~~       +
 
 error: `box_syntax` has been removed
   --> $DIR/removed-syntax-box.rs:13:22
@@ -51,7 +51,7 @@ LL |     let _: Box<()> = box ();
 help: use `Box::new()` instead
    |
 LL |     let _: Box<()> = Box::new(());
-   |                      ~~~~~~~~~~~~
+   |                      ~~~~~~~~~  +
 
 error: aborting due to 5 previous errors