Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/nested-constr-1.h
2023-03-06 14:48:14 +01:00

16 lines
280 B
C++

template<typename T>
struct traits
{
template<typename U>
struct nested
{ using type = void; };
template<typename U> requires requires { typename U::type; }
struct nested<U>
{ using type = typename U::type; };
};
using V = traits<char>::nested<int>::type;