fail_todo_form_thunk.carbon 1010 B

1234567891011121314151617181920212223242526
  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. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
  6. //
  7. // AUTOUPDATE
  8. // TIP: To test this file alone, run:
  9. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_todo_form_thunk.carbon
  10. // TIP: To dump output, run:
  11. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_todo_form_thunk.carbon
  12. interface I {
  13. let T:! type;
  14. // CHECK:STDERR: fail_todo_form_thunk.carbon:[[@LINE+4]]:8: error: semantics TODO: `Support for cloning form bindings` [SemanticsTodo]
  15. // CHECK:STDERR: fn F(x:? form(ref ()), y: T);
  16. // CHECK:STDERR: ^~~~~~~~~~~~~~~~
  17. // CHECK:STDERR:
  18. fn F(x:? form(ref ()), y: T);
  19. }
  20. class C {
  21. impl as I where .T = () {
  22. fn F(x:? form(ref ()), ());
  23. }
  24. }