We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17432c3 commit 0c448c6Copy full SHA for 0c448c6
test/compilable/traits.d
@@ -139,3 +139,7 @@ static assert(__traits(hasElaborateCopyConstructor, SPostblit));
139
static assert(!__traits(hasElaborateCopyConstructor, NoCpCtor));
140
static assert(!__traits(hasElaborateCopyConstructor, C19902));
141
static assert(!__traits(hasElaborateCopyConstructor, int));
142
+
143
+// Check that invalid use cases don't compile
144
+static assert(!__traits(compiles, __traits(hasElaborateCopyConstructor)));
145
+static assert(!__traits(compiles, __traits(hasElaborateCopyConstructor, S())));
0 commit comments