diff --git a/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp b/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp index 8882fd1f1..9d1ad61ce 100644 --- a/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp +++ b/test/std/thread/futures/futures.task/futures.task.members/ctor1.fail.cpp @@ -29,6 +29,8 @@ typedef volatile std::packaged_task VPT; int main() { VPT init{}; - PT p{init}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task')}} - // expected-note@future:* 1 {{candidate template ignored: disabled by 'enable_if'}} + auto const& c_init = init; + PT p1{init}; // expected-error {{no matching constructor}} + PT p2{c_init}; // expected-error {{no matching constructor}} + PT p3{std::move(init)}; // expected-error {{no matching constructor for initialization of 'PT' (aka 'packaged_task')}} }