summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/type-param-defaults.stderr
blob: 85ccaba0e69e721a40b70821dc7776ce0849c7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
  --> $DIR/type-param-defaults.rs:6:16
   |
LL |     type Assoc<T = u32>;
   |                ^^^^^^^

error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
  --> $DIR/type-param-defaults.rs:11:16
   |
LL |     type Assoc<T = u32> = u64;
   |                ^^^^^^^

error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
  --> $DIR/type-param-defaults.rs:16:16
   |
LL |     type Assoc<T = u32> = T;
   |                ^^^^^^^

error: aborting due to 3 previous errors