Continuing the improvement of std/std::experimental mixing diagnostics ...
First, let's check we get a TemplateDecl, before complaining about where it might have been found.
Second, if it came from an unexpected place, show where that location is with a 'declared here' note.
(Still an error when std and std::experimental both have decls)
Instead of doing this -verify=expected,declared, I have another trick for you from the libcxx test suite. :) IIUC, the compiler output we expect is
So, down on line 53, I think we should write
And then on line 3 we can just write -verify. And in Inputs/std-coroutine-exp-namespace.h itself, we don't need to write anything.
This keeps the test more "all in one place," which I think is more readable/understandable.
(Likewise throughout. I assume this will have a big effect on all these tests.)