summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-type-more-params-with-defaults.rs
blob: b83fdb5c455a71ad37b9dfc48844bf7193d216cb (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 struct takes at most 2 generic arguments but 3 generic arguments
}