[Issue 21264] New: Template constraint on `each` is too wide
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 18 08:12:57 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21264
Issue ID: 21264
Summary: Template constraint on `each` is too wide
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: timon.gehr at gmx.ch
----
import std.algorithm;
struct S{
struct T{
struct Q{}
Q length;
}
T front;
}
void main(){
S().each!((x){});
}
----
std/algorithm/iteration.d(966): Error: template `std.range.primitives.empty`
cannot deduce function from argument types `!()(S)`, candidates are:
...
----
--
More information about the Digitalmars-d-bugs
mailing list