https://issues.dlang.org/show_bug.cgi?id=13781
Issue ID: 13781
Summary: Tuple assign should be @nogc
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
void main() @nogc {
import std.typecons: Tuple;
alias T = Tuple!(string,"s");
T x;
x = T.init;
}
dmd 2.067alpha:
test.d(5,7): Error: @nogc function 'D main' cannot call non-@nogc function
'std.typecons.Tuple!(string, "s").Tuple.opAssign!(Tuple!(string,
"s")).opAssign'
--