Test error on invalid type spec and remove unused alias

This commit is contained in:
Victor Zverovich 2017-11-19 08:25:34 -08:00
parent 692b82d32c
commit e7e270f511
2 changed files with 1 additions and 2 deletions

View File

@ -3773,8 +3773,6 @@ struct formatter<
}
private:
using arg_ref = internal::arg_ref<Char>;
internal::dynamic_format_specs<Char> specs_;
};

View File

@ -1909,4 +1909,5 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR("{}{1}",
"cannot switch from automatic to manual argument indexing",
int, int);
EXPECT_ERROR("{:s}", "invalid type specifier", int);
}