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)] + | +