fail_rewrite_cycle.carbon 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 ManyTypes {
  8. let T0:! type;
  9. let T1:! type;
  10. let T2:! type;
  11. let T3:! type;
  12. let T4:! type;
  13. let T5:! type;
  14. let T6:! type;
  15. let T7:! type;
  16. let T8:! type;
  17. let T9:! type;
  18. }
  19. fn F[
  20. M:! ManyTypes where
  21. .T0 = .T1 and
  22. .T1 = .T2 and
  23. .T2 = .T3 and
  24. .T3 = .T4 and
  25. .T4 = .T5 and
  26. .T5 = .T6 and
  27. .T6 = .T7 and
  28. .T7 = .T8 and
  29. .T8 = .T9 and
  30. // CHECK:STDERR: COMPILATION ERROR: fail_rewrite_cycle.carbon:[[@LINE+1]]: rewrite of (M).(ManyTypes.T4) applies within its own resolved expansion of (M).(ManyTypes.T4)
  31. .T9 = .T0]() {}
  32. fn Main() -> i32 {
  33. return 0;
  34. }