fail_overspecified_impl.carbon 664 B

1234567891011121314151617181920
  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. // RUN: %{not} %{explorer-run}
  7. // RUN: %{not} %{explorer-run-trace}
  8. package ExplorerTest api;
  9. interface HasType {
  10. let T:! type;
  11. }
  12. // CHECK:STDERR: COMPILATION ERROR: {{.*}}/explorer/testdata/assoc_const/fail_overspecified_impl.carbon:[[@LINE+3]]: multiple different rewrites for `(i32).(HasType.T)`:
  13. // CHECK:STDERR: i32
  14. // CHECK:STDERR: {.a: i32}
  15. external impl i32 as HasType where .T = i32 and .T = {.a: i32} {}
  16. fn Main() -> i32 { return 0; }