]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/type-alias-where-fixable.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / parser / type-alias-where-fixable.stderr
CommitLineData
5e7ed085 1warning: where clause not allowed here
f2b60f7d 2 --> $DIR/type-alias-where-fixable.rs:13:16
5e7ed085
FG
3 |
4LL | type Assoc where u32: Copy = ();
5 | ^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(deprecated_where_clause_location)]` on by default
8 = note: see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information
9help: move it to the end of the type declaration
10 |
11LL - type Assoc where u32: Copy = ();
12LL + type Assoc = () where u32: Copy;
923072b8 13 |
5e7ed085
FG
14
15warning: where clause not allowed here
f2b60f7d 16 --> $DIR/type-alias-where-fixable.rs:16:17
5e7ed085
FG
17 |
18LL | 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
22help: move it to the end of the type declaration
23 |
24LL - type Assoc2 where u32: Copy = () where i32: Copy;
25LL + type Assoc2 = () where i32: Copy, u32: Copy;
923072b8 26 |
5e7ed085
FG
27
28warning: where clause not allowed here
f2b60f7d 29 --> $DIR/type-alias-where-fixable.rs:24:17
5e7ed085
FG
30 |
31LL | 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
35help: move it to the end of the type declaration
36 |
37LL - type Assoc2 where u32: Copy, i32: Copy = ();
38LL + type Assoc2 = () where u32: Copy, i32: Copy;
923072b8 39 |
5e7ed085
FG
40
41warning: 3 warnings emitted
42