From f674e13c3d23df120a1c785f4ae07f8777a27918 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Mon, 11 May 2026 14:43:54 +0200 Subject: [PATCH] Guard `UniqueBox.borrow` correctly Correctly guard the `borrow` method behind the compiler version --- Sources/ContainersPreview/Types/UniqueBox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ContainersPreview/Types/UniqueBox.swift b/Sources/ContainersPreview/Types/UniqueBox.swift index 3fc2072f..ab0baaf6 100644 --- a/Sources/ContainersPreview/Types/UniqueBox.swift +++ b/Sources/ContainersPreview/Types/UniqueBox.swift @@ -198,7 +198,7 @@ extension UniqueBox where Value: ~Copyable { } #endif -#if UnstableContainersPreview +#if compiler(>=6.3) && UnstableContainersPreview /// Return a borrowing reference to the contents of this box. @available(SwiftStdlib 5.0, *) @_alwaysEmitIntoClient