anchor.diff:          D: int
       }
   
  +let private hasAttribute<'T,'Attr>() =
  +    typeof<'T>.GetTypeInfo().GetCustomAttributes() |> Seq.exists  (fun x -> x.GetType() = typeof<'Attr>)
  +
   
   let [<Test>] ``struct records hold [<Struct>] metadata`` () =
  -    Assert.IsTrue (typeof<StructRecord>.IsDefined (typeof<StructAttribute>, false))
  +    Assert.IsTrue (hasAttribute<StructRecord,StructAttribute>())
   
   
   let [<Test>] ``struct records are comparable`` () =
  
positive.code: 
  
  let [<Test>] ``struct records hold [<CustomComparison>] [<CustomEquality>] metadata`` () =
      Assert.IsTrue (typeof<ComparisonStructRecord>.IsDefined (typeof<CustomComparisonAttribute>, false))
      Assert.IsTrue (typeof<ComparisonStructRecord>.IsDefined (typeof<CustomEqualityAttribute>, false))
  
  
  [<Struct>]
  
negative.code: #nowarn "9"
  
  open System
  open System.Reflection
  open System.Runtime.InteropServices
  open NUnit.Framework
  open FsCheck
  