destroy.carbon 573 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. // EXTRA-ARGS: --custom-core --exclude-dump-file-prefix=min_prelude/
  6. // --- min_prelude/destroy.carbon
  7. // A minimal prelude for tests that require destruction.
  8. package Core library "prelude";
  9. // TODO: Uncomment once the interface is used.
  10. // interface Destroy {
  11. // fn Op[self: Self]();
  12. // }
  13. // impl forall [T:! type] T as Destroy {
  14. // fn Op[self: Self]() = "no_op";
  15. // }