mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
356 B
Swift
9 lines
356 B
Swift
// RUN: %target-typecheck-verify-swift -parse-as-library -disable-implicit-concurrency-module-import %s
|
|
// RUN: %target-typecheck-verify-swift -parse-as-library -enable-experimental-concurrency -parse-stdlib %s
|
|
|
|
@main struct Main {
|
|
// expected-error@+1:22{{'_Concurrency' module not imported, required for async main}}
|
|
static func main() async {
|
|
}
|
|
}
|