fork download
  1. import std.typecons;
  2.  
  3. void main()
  4. {
  5. string s = "hello";
  6. auto t = tuple(s[0], s[1]);
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/dmd2/src/phobos/std/typecons.d(518): Error: can only initialize const member _field_field_0 inside constructor
/usr/lib/dmd2/src/phobos/std/typecons.d(518): Error: can only initialize const member _field_field_1 inside constructor
/usr/lib/dmd2/src/phobos/std/typecons.d(6): Error: template instance std.typecons.tuple!(immutable(char),immutable(char)) error instantiating
stdout
Standard output is empty