https://issues.dlang.org/show_bug.cgi?id=20623
Vijay Nayar <mad...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mad...@gmail.com --- Comment #5 from Vijay Nayar <mad...@gmail.com> --- This error is also reproducible using enums, e.g.: ``` d import std.conv : to; struct Foo { enum Type { HAM, BREAD } Type t; void foo() inout { to!string(this.t); } } void main() { Foo().foo(); } ``` > /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(1217): Error: variable > `std.conv.value` only parameters or stack based variables can be `inout` --