]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/type-param-defaults.stderr
Auto merge of #101629 - compiler-errors:issue-101623, r=sanxiyn
[rust.git] / src / test / ui / generic-associated-types / type-param-defaults.stderr
1 error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
2   --> $DIR/type-param-defaults.rs:6:16
3    |
4 LL |     type Assoc<T = u32>;
5    |                ^^^^^^^
6
7 error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
8   --> $DIR/type-param-defaults.rs:11:16
9    |
10 LL |     type Assoc<T = u32> = u64;
11    |                ^^^^^^^
12
13 error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
14   --> $DIR/type-param-defaults.rs:16:16
15    |
16 LL |     type Assoc<T = u32> = T;
17    |                ^^^^^^^
18
19 error: aborting due to 3 previous errors
20