]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/type-alias-where-fixable.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / type-alias-where-fixable.stderr
1 warning: where clause not allowed here
2   --> $DIR/type-alias-where-fixable.rs:13:16
3    |
4 LL |     type Assoc where u32: Copy = ();
5    |                ^^^^^^^^^^^^^^^
6    |
7    = note: see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information
8    = note: `#[warn(deprecated_where_clause_location)]` on by default
9 help: move it to the end of the type declaration
10    |
11 LL -     type Assoc where u32: Copy = ();
12 LL +     type Assoc  = () where u32: Copy;
13    |
14
15 warning: where clause not allowed here
16   --> $DIR/type-alias-where-fixable.rs:16:17
17    |
18 LL |     type Assoc2 where u32: Copy = () where i32: Copy;
19    |                 ^^^^^^^^^^^^^^^
20    |
21    = note: see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information
22 help: move it to the end of the type declaration
23    |
24 LL -     type Assoc2 where u32: Copy = () where i32: Copy;
25 LL +     type Assoc2  = () where i32: Copy, u32: Copy;
26    |
27
28 warning: where clause not allowed here
29   --> $DIR/type-alias-where-fixable.rs:24:17
30    |
31 LL |     type Assoc2 where u32: Copy, i32: Copy = ();
32    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
33    |
34    = note: see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information
35 help: move it to the end of the type declaration
36    |
37 LL -     type Assoc2 where u32: Copy, i32: Copy = ();
38 LL +     type Assoc2  = () where u32: Copy, i32: Copy;
39    |
40
41 warning: 3 warnings emitted
42