]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-type-more-params-with-defaults.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / generic / generic-type-more-params-with-defaults.rs
1 use std::marker;
2
3 struct Heap;
4
5 struct Vec<T, A = Heap>(
6     marker::PhantomData<(T,A)>);
7
8 fn main() {
9     let _: Vec<isize, Heap, bool>;
10     //~^ ERROR wrong number of type arguments: expected at most 2, found 3 [E0107]
11 }