summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-type-more-params-with-defaults.rs
blob: 3dab03297c9df9484977f763b63acd2f18f89962 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::marker;

struct Heap;

struct Vec<T, A = Heap>(
    marker::PhantomData<(T,A)>);

fn main() {
    let _: Vec<isize, Heap, bool>;
    //~^ ERROR this struct takes at most 2 generic arguments but 3 generic arguments
}