https://issues.dlang.org/show_bug.cgi?id=20323

          Issue ID: 20323
           Summary: checkaction=context fails for non-copyable arguments
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nob...@puremagic.com
          Reporter: moonlightsenti...@disroot.org

A unittest from rt.util.container.treap.d fails to compile with -unittest
-checkaction=context:

src/core/internal/dassert.d(220): Error: struct
rt.util.container.treap.Treap!uint.Treap is not copyable because it is
annotated with @disable
src/core/internal/dassert.d(17): Error: template instance
core.internal.dassert.miniFormatFakeAttributes!(Treap!uint) error instantiating
src/rt/util/container/treap.d(282):        instantiated from here:
_d_assert_fail!("==", Treap!uint, uint[])


The is caused by miniFormat trying to copy Treap which has a disabled postblit

--

Reply via email to