https://issues.dlang.org/show_bug.cgi?id=22002
--- Comment #1 from mipri <[email protected]> --- workaround: auto noapply(T)(T x) { import std.range.primitives : ElementType; struct NoApply(T) { T wrapped; alias wrapped this; @disable ElementType!T opApply(); } return NoApply!T(x); } unittest { import std.algorithm : each; import std.range : only, inputRangeObject; import std.stdio : writeln; only(1, 2).inputRangeObject.noapply.each!writeln; } --
