forked from fmtlib/fmt
Test error on invalid type spec and remove unused alias
This commit is contained in:
@ -3773,8 +3773,6 @@ struct formatter<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using arg_ref = internal::arg_ref<Char>;
|
|
||||||
|
|
||||||
internal::dynamic_format_specs<Char> specs_;
|
internal::dynamic_format_specs<Char> specs_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1909,4 +1909,5 @@ TEST(FormatTest, FormatStringErrors) {
|
|||||||
EXPECT_ERROR("{}{1}",
|
EXPECT_ERROR("{}{1}",
|
||||||
"cannot switch from automatic to manual argument indexing",
|
"cannot switch from automatic to manual argument indexing",
|
||||||
int, int);
|
int, int);
|
||||||
|
EXPECT_ERROR("{:s}", "invalid type specifier", int);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user