diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2024-08-01 13:11:24 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2024-08-01 13:11:24 +0000 |
| commit | e157954cce4497738a728f8c295c71b229d35a66 (patch) | |
| tree | 70929ac99ff57cedb499cc46a087f4bec17e09a3 /tests/ui/parser/removed-syntax | |
| parent | 97ac52f579fe1003a162324d448dad43a942b5f5 (diff) | |
| download | rust-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.stderr | 10 |
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 |
