summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs')
-rw-r--r--tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs b/tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs
deleted file mode 100644
index b9798c79d..000000000
--- a/tests/ui/traits/new-solver/dont-ice-on-assoc-projection.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// compile-flags: -Ztrait-solver=next-coherence
-
-// Makes sure we don't ICE on associated const projection when the feature gate
-// is not enabled, since we should avoid encountering ICEs on stable if possible.
-
-trait Bar {
- const ASSOC: usize;
-}
-impl Bar for () {
- const ASSOC: usize = 1;
-}
-
-trait Foo {}
-impl Foo for () {}
-impl<T> Foo for T where T: Bar<ASSOC = 0> {}
-//~^ ERROR associated const equality is incomplete
-//~| ERROR conflicting implementations of trait `Foo` for type `()`
-
-fn main() {}