From ab7b57982863bedf3fbc9de67ce63ed15388aa1b Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sun, 28 Jul 2024 21:04:30 +0100 Subject: [PATCH] Add ditto ddoc for dscanner --- std/algorithm/mutation.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/std/algorithm/mutation.d b/std/algorithm/mutation.d index a1862767b0d..e434d248edb 100644 --- a/std/algorithm/mutation.d +++ b/std/algorithm/mutation.d @@ -1076,9 +1076,11 @@ if (__traits(compiles, target = T.init)) moveImpl(target, source); } +/// ditto template move(T) if (!__traits(compiles, imported!"std.traits".lvalueOf!T = T.init)) { + /// deprecated("Can't move into `target` as `" ~ T.stringof ~ "` can't be assigned") void move(ref T source, ref T target) => moveImpl(target, source); }