// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules 2>&1 | %FileCheck %s | |
import Requires.Swift // OK | |
import Requires.NotSwift | |
// CHECK-NOT: error | |
// CHECK: error: module 'Requires.NotSwift' is incompatible with feature 'swift' | |
// CHECK-NOT: error | |
// CHECK: error: no such module 'Requires.NotSwift' | |
// CHECK-NOT: error |