err

Undocumented in source. Be warned that the author may not have intended to support it.
err
(
E
string prettyFun = __PRETTY_FUNCTION__
string funName = __FUNCTION__
)
()

Examples

static assert(__traits(compiles, () => "failure".err));
static assert(is(typeof(() { return "failure".err; } ()) == Err!string));

static assert(__traits(compiles, function Result!int() => "failure".err));

Meta