summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/const-param-placeholder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/new-solver/const-param-placeholder.rs')
-rw-r--r--tests/ui/traits/new-solver/const-param-placeholder.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/ui/traits/new-solver/const-param-placeholder.rs b/tests/ui/traits/new-solver/const-param-placeholder.rs
deleted file mode 100644
index a83102a4c..000000000
--- a/tests/ui/traits/new-solver/const-param-placeholder.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// compile-flags: -Ztrait-solver=next
-// revisions: pass fail
-//[pass] check-pass
-
-struct Wrapper<T, const N: usize>([T; N]);
-
-trait Foo {}
-fn needs_foo<F: Foo>() {}
-
-#[cfg(fail)]
-impl<T> Foo for [T; 1] {}
-
-#[cfg(pass)]
-impl<T, const N: usize> Foo for [T; N] {}
-
-fn test<T, const N: usize>() {
- needs_foo::<[T; N]>();
- //[fail]~^ ERROR the trait bound `[T; N]: Foo` is not satisfied
-}
-
-fn main() {}