Skip to content

Commit

Permalink
Fix compile fail test output
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Sep 8, 2024
1 parent 06acaad commit c8a9f8f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
| +
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
| +

0 comments on commit c8a9f8f

Please sign in to comment.