Repro:
This fails to build with F# 9.0 (or preview) enabled
[]
[<DefaultAugmentation(false)>]
type Foo =
| Baz of int
| Bat
| Batman
let foo = [Baz 42; Bat; Batman]
printf "%A" foo
c:\temp>c:\kevinransom\fsharp\artifacts\bin\fsc\Release\net472\fsc foo.fs
Microsoft (R) F# Compiler version 12.9.100.0 for F# 9.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
foo.fs(2,3): error FS0842: This attribute is not valid for use on this language element