diff options
Diffstat (limited to 'src/test/ui/generics/generic-impl-less-params-with-defaults.rs')
-rw-r--r-- | src/test/ui/generics/generic-impl-less-params-with-defaults.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/generics/generic-impl-less-params-with-defaults.rs b/src/test/ui/generics/generic-impl-less-params-with-defaults.rs deleted file mode 100644 index 66afbb58a..000000000 --- a/src/test/ui/generics/generic-impl-less-params-with-defaults.rs +++ /dev/null @@ -1,13 +0,0 @@ -use std::marker; - -struct Foo<A, B, C = (A, B)>( - marker::PhantomData<(A,B,C)>); - -impl<A, B, C> Foo<A, B, C> { - fn new() -> Foo<A, B, C> {Foo(marker::PhantomData)} -} - -fn main() { - Foo::<isize>::new(); - //~^ ERROR this struct takes at least 2 generic arguments but 1 generic argument -} |