fail_assoc_const_not_binding.carbon 894 B

123456789101112131415161718192021222324252627
  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. interface I {
  7. // CHECK:STDERR: fail_assoc_const_not_binding.carbon:[[@LINE+3]]:3: ERROR: Semantics TODO: `tuple pattern in let`.
  8. // CHECK:STDERR: let (T:! type, U:! type);
  9. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~
  10. let (T:! type, U:! type);
  11. }
  12. // CHECK:STDOUT: --- fail_assoc_const_not_binding.carbon
  13. // CHECK:STDOUT:
  14. // CHECK:STDOUT: constants {
  15. // CHECK:STDOUT: %.1: type = interface_type @I [template]
  16. // CHECK:STDOUT: }
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: file {}
  19. // CHECK:STDOUT:
  20. // CHECK:STDOUT: interface @I {
  21. // CHECK:STDOUT: !members:
  22. // CHECK:STDOUT: .Self = <unexpected instref inst+3>
  23. // CHECK:STDOUT: witness = invalid
  24. // CHECK:STDOUT: }
  25. // CHECK:STDOUT: