fail_incomplete_impl_2.carbon 598 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. package ExplorerTest api;
  7. interface HasThreeTypes {
  8. let A:! type;
  9. let B:! type;
  10. let C:! type;
  11. }
  12. // CHECK:STDERR: COMPILATION ERROR: explorer/testdata/assoc_const/fail_incomplete_impl_2.carbon:[[@LINE+1]]: implementation doesn't provide a concrete value for interface HasThreeTypes.C
  13. external impl i32 as HasThreeTypes where .A = i32 and .B = .C {}
  14. fn Main() -> i32 { return 0; }