summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/type_of_anon_const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/type_of_anon_const.rs')
-rw-r--r--src/test/ui/const-generics/type_of_anon_const.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/const-generics/type_of_anon_const.rs b/src/test/ui/const-generics/type_of_anon_const.rs
deleted file mode 100644
index fb0d688a8..000000000
--- a/src/test/ui/const-generics/type_of_anon_const.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// run-pass
-trait T<const A: usize> {
- fn l<const N: bool>() -> usize;
- fn r<const N: bool>() -> bool;
-}
-
-struct S;
-
-impl<const N: usize> T<N> for S {
- fn l<const M: bool>() -> usize { N }
- fn r<const M: bool>() -> bool { M }
-}
-
-fn main() {
- assert_eq!(<S as T<123>>::l::<true>(), 123);
- assert!(<S as T<123>>::r::<true>());
-}