summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/generic-non-trailing-defaults.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generics/generic-non-trailing-defaults.rs')
-rw-r--r--src/test/ui/generics/generic-non-trailing-defaults.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/generics/generic-non-trailing-defaults.rs b/src/test/ui/generics/generic-non-trailing-defaults.rs
deleted file mode 100644
index 16ea71d48..000000000
--- a/src/test/ui/generics/generic-non-trailing-defaults.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-struct Heap;
-
-struct Vec<A = Heap, T>(A, T);
-//~^ ERROR generic parameters with a default must be trailing
-
-struct Foo<A, B = Vec<C>, C>(A, B, C);
-//~^ ERROR generic parameters with a default must be trailing
-//~| ERROR generic parameters with a default cannot use
-
-fn main() {}