When compiling on Swift version 5.10.1 (swift-5.10.1-RELEASE) on Ubuntu Noble (24.04) I get
/__w/my-project/my-project/.build/checkouts/swift-system/Sources/System/IORing/IORing.swift:465:5: error: extraneous code at top level
) throws(Err) {
^~~~~~~~~~~~~~~
/__w/my-project/my-project/.build/checkouts/swift-system/Sources/System/IORing/IORing.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
#if compiler(>=6.2) && $Lifetimes
^