// This file contains references to sections of the Coroutines TS, which can be
// found at http://wg21.link/coroutines.
// RUN: %clang_cc1 -std=c++14 -fcoroutines-ts -verify %s -fcxx-exceptions -fexceptions -Wunused-result
namespacestd{namespaceexperimental{template<typename... T>structcoroutine_traits{// expected-note{{declared here}}
structpromise_type{};};template<>structcoroutine_traits<void>;// expected-note {{forward declaration of 'std::experimental::coroutine_traits<void>'}}
}// namespace experimental
}// namespace std
voiduses_forward_declaration(){
co_return;// expected-error {{this function cannot be a coroutine: missing definition of specialization 'coroutine_traits<void>'}}
// expected-warning@-1 {{support for std::experimental::coroutine_traits will be removed}}
}