diff --git a/test/format-test.cc b/test/format-test.cc index 66d87c2d..08828ccb 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1917,7 +1917,7 @@ TEST(FormatTest, CustomFormatCompileTimeString) { EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), Answer())); Answer answer; EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), answer)); - const Answer const_answer; + const Answer const_answer = Answer(); EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), const_answer)); }