#include struct foo { int x{0}; foo() noexcept = default; void f() noexcept(noexcept(std::declval())) {} }; int main()
This is correct syntactical way is I can say.
#include struct foo { int x{0}; foo() noexcept {} // = default; void f() noexcept(noexcept(std::declval())) {} }; int main() { }