diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-22 00:03:09 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-22 00:03:09 +0000 |
| commit | e91267f3f094a6f5d16aef0abb864fca4bc8c9f4 (patch) | |
| tree | ba5ce9ae085572e299066b12a06da711416eea87 /tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs | |
| parent | edbd9398dcc0e3b6ffe0dd0cd4578d37d1d36974 (diff) | |
| download | rust-e91267f3f094a6f5d16aef0abb864fca4bc8c9f4.tar.gz rust-e91267f3f094a6f5d16aef0abb864fca4bc8c9f4.zip | |
Move tests
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs deleted file mode 100644 index cb5cc924bfd..00000000000 --- a/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs +++ /dev/null @@ -1,25 +0,0 @@ -//@ check-pass -//@ compile-flags: -Znext-solver -#![allow(incomplete_features)] -#![feature(const_trait_impl, effects)] - -#[const_trait] -trait Foo { - fn bar() where Self: ~const Foo; -} - -struct S; - -impl Foo for S { - fn bar() {} -} - -fn baz<T: Foo>() { - T::bar(); -} - -const fn qux<T: ~const Foo>() { - T::bar(); -} - -fn main() {} |
