| 61 | } |
| 62 | |
| 63 | static cxx20::expected<int, std::string> error() { |
| 64 | return cxx20::unexpected(std::string("error1 ")); |
| 65 | } |
| 66 | static std::string maperror(std::string s) { return s + "maperror "; } |
| 67 | |
| 68 | TEST(RegressionTest, Issue30) { error().map_error(maperror); } |