]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-type-more-params-with-defaults.stderr
Auto merge of #80957 - tgnottingham:direct_serialize_depgraph, r=michaelwoerister
[rust.git] / src / test / ui / generics / generic-type-more-params-with-defaults.stderr
1 error[E0107]: this struct takes at most 2 type arguments but 3 type arguments were supplied
2   --> $DIR/generic-type-more-params-with-defaults.rs:9:12
3    |
4 LL |     let _: Vec<isize, Heap, bool>;
5    |            ^^^            ------ help: remove this type argument
6    |            |
7    |            expected at most 2 type arguments
8    |
9 note: struct defined here, with at most 2 type parameters: `T`, `A`
10   --> $DIR/generic-type-more-params-with-defaults.rs:5:8
11    |
12 LL | struct Vec<T, A = Heap>(
13    |        ^^^ -  -
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0107`.