Bug 21920 – [REG master] Error: `auto` can only be used as part of `auto ref` for template function parameters

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-14T10:25:16Z
Last change time
2021-05-18T06:49:48Z
Keywords
industry, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-05-14T10:25:16Z
import std.stdio; void function(string) printer = &writeln!string; --- Caused by https://github.com/dlang/phobos/pull/8055
Comment #1 by dlang-bot — 2021-05-17T09:26:27Z
@ibuclaw updated dlang/phobos pull request #8092 "Revert "Fix Issue 9489 - writeln of struct with disabled copy ctor"" mentioning this issue: - Issue 21920 - [REG master] Error: `auto` can only be used as part of `auto ref` for template function parameters https://github.com/dlang/phobos/pull/8092
Comment #2 by dlang-bot — 2021-05-18T06:49:48Z
dlang/phobos pull request #8092 "Revert "Fix Issue 9489 - writeln of struct with disabled copy ctor"" was merged into master: - c16220295f19bef83dfe584cf2f4c8c31edbc5a7 by Iain Buclaw: fix Issue 21920 - [REG master] Error: `auto` can only be used as part of `auto ref` for template function parameters https://github.com/dlang/phobos/pull/8092