summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/assoc-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/assoc-type.rs')
-rw-r--r--tests/ui/rfc-2632-const-trait-impl/assoc-type.rs33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/assoc-type.rs b/tests/ui/rfc-2632-const-trait-impl/assoc-type.rs
deleted file mode 100644
index 96790a873..000000000
--- a/tests/ui/rfc-2632-const-trait-impl/assoc-type.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-// known-bug: #110395
-
-#![feature(const_trait_impl)]
-
-struct NonConstAdd(i32);
-
-impl std::ops::Add for NonConstAdd {
- type Output = Self;
-
- fn add(self, rhs: Self) -> Self {
- NonConstAdd(self.0 + rhs.0)
- }
-}
-
-#[const_trait]
-trait Foo {
- type Bar: ~const std::ops::Add;
-}
-
-impl const Foo for NonConstAdd {
- type Bar = NonConstAdd;
-}
-
-#[const_trait]
-trait Baz {
- type Qux: std::ops::Add;
-}
-
-impl const Baz for NonConstAdd {
- type Qux = NonConstAdd; // OK
-}
-
-fn main() {}