From c8a9f8f7cf3cf1d63dcc7ffc35be96bbda2744d3 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Sun, 8 Sep 2024 09:50:17 +0200 Subject: [PATCH] Fix compile fail test output --- .../debug/unnamed_field_prefixed_with_dot.stderr | 7 ++++++- .../display/unnamed_field_prefixed_with_dot.stderr | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/compile_fail/debug/unnamed_field_prefixed_with_dot.stderr b/tests/compile_fail/debug/unnamed_field_prefixed_with_dot.stderr index 57db855a..d582b4c0 100644 --- a/tests/compile_fail/debug/unnamed_field_prefixed_with_dot.stderr +++ b/tests/compile_fail/debug/unnamed_field_prefixed_with_dot.stderr @@ -2,4 +2,9 @@ error: float literals must have an integer part --> tests/compile_fail/debug/unnamed_field_prefixed_with_dot.rs:2:37 | 2 | pub struct Foo(#[debug("Stuff({})", .0)] String); - | ^^ help: must have an integer part: `0.0` + | ^^ + | +help: must have an integer part + | +2 | pub struct Foo(#[debug("Stuff({})", 0.0)] String); + | + diff --git a/tests/compile_fail/display/unnamed_field_prefixed_with_dot.stderr b/tests/compile_fail/display/unnamed_field_prefixed_with_dot.stderr index 066053ba..2f7faac9 100644 --- a/tests/compile_fail/display/unnamed_field_prefixed_with_dot.stderr +++ b/tests/compile_fail/display/unnamed_field_prefixed_with_dot.stderr @@ -2,4 +2,9 @@ error: float literals must have an integer part --> tests/compile_fail/display/unnamed_field_prefixed_with_dot.rs:2:24 | 2 | #[display("Stuff({})", .0)] - | ^^ help: must have an integer part: `0.0` + | ^^ + | +help: must have an integer part + | +2 | #[display("Stuff({})", 0.0)] + | +