Files
swift-mirror/test/Concurrency/async_main_no_concurrency.swift
2021-04-13 23:14:06 -07:00

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 {
}
}