@@ -31,19 +31,19 @@ void test() {
3131 returns_expected_void (); // expected-warning {{ignoring return value of type 'expected<void, int>'}}
3232
3333 returns_expected ().and_then (and_then);
34- // expected-warning@-1 {{ignoring return value of type 'expected<int, int>' }}
34+ // expected-warning@-1 {{ignoring return value}}
3535 returns_expected_void ().and_then (and_then_void);
36- // expected-warning@-1 {{ignoring return value of type 'expected<void, int>' }}
36+ // expected-warning@-1 {{ignoring return value}}
3737 returns_expected ().or_else (or_else);
38- // expected-warning@-1 {{ignoring return value of type 'expected<int, int>' }}
38+ // expected-warning@-1 {{ignoring return value}}
3939 returns_expected_void ().or_else (or_else_void);
40- // expected-warning@-1 {{ignoring return value of type 'expected<void, int>' }}
40+ // expected-warning@-1 {{ignoring return value}}
4141 returns_expected ().transform (transform);
42- // expected-warning@-1 {{ignoring return value of type 'expected<int, int>' }}
42+ // expected-warning@-1 {{ignoring return value}}
4343 returns_expected_void ().transform (transform_void);
44- // expected-warning@-1 {{ignoring return value of type 'expected<void, int>' }}
44+ // expected-warning@-1 {{ignoring return value}}
4545 returns_expected ().transform_error (transform_error);
46- // expected-warning@-1 {{ignoring return value of type 'expected<int, int>' }}
46+ // expected-warning@-1 {{ignoring return value}}
4747 returns_expected_void ().transform_error (transform_error_void);
48- // expected-warning@-1 {{ignoring return value of type 'expected<void, int>' }}
48+ // expected-warning@-1 {{ignoring return value}}
4949}
0 commit comments