@@ -5,93 +5,129 @@ LL | type _TaWhere1<T> where T: Iterator<Item: Copy> = T;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(type_alias_bounds)]` on by default
8
- = help: the clause will not be checked when the type alias is used, and should be removed
8
+ help: the clause will not be checked when the type alias is used, and should be removed
9
+ |
10
+ LL | type _TaWhere1<T> = T;
11
+ | --
9
12
10
13
warning: where clauses are not enforced in type aliases
11
14
--> $DIR/type-alias.rs:6:25
12
15
|
13
16
LL | type _TaWhere2<T> where T: Iterator<Item: 'static> = T;
14
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
15
18
|
16
- = help: the clause will not be checked when the type alias is used, and should be removed
19
+ help: the clause will not be checked when the type alias is used, and should be removed
20
+ |
21
+ LL | type _TaWhere2<T> = T;
22
+ | --
17
23
18
24
warning: where clauses are not enforced in type aliases
19
25
--> $DIR/type-alias.rs:7:25
20
26
|
21
27
LL | type _TaWhere3<T> where T: Iterator<Item: 'static> = T;
22
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
23
29
|
24
- = help: the clause will not be checked when the type alias is used, and should be removed
30
+ help: the clause will not be checked when the type alias is used, and should be removed
31
+ |
32
+ LL | type _TaWhere3<T> = T;
33
+ | --
25
34
26
35
warning: where clauses are not enforced in type aliases
27
36
--> $DIR/type-alias.rs:8:25
28
37
|
29
38
LL | type _TaWhere4<T> where T: Iterator<Item: 'static + Copy + Send> = T;
30
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
40
|
32
- = help: the clause will not be checked when the type alias is used, and should be removed
41
+ help: the clause will not be checked when the type alias is used, and should be removed
42
+ |
43
+ LL | type _TaWhere4<T> = T;
44
+ | --
33
45
34
46
warning: where clauses are not enforced in type aliases
35
47
--> $DIR/type-alias.rs:9:25
36
48
|
37
49
LL | type _TaWhere5<T> where T: Iterator<Item: for<'a> Into<&'a u8>> = T;
38
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
51
|
40
- = help: the clause will not be checked when the type alias is used, and should be removed
52
+ help: the clause will not be checked when the type alias is used, and should be removed
53
+ |
54
+ LL | type _TaWhere5<T> = T;
55
+ | --
41
56
42
57
warning: where clauses are not enforced in type aliases
43
58
--> $DIR/type-alias.rs:10:25
44
59
|
45
60
LL | type _TaWhere6<T> where T: Iterator<Item: Iterator<Item: Copy>> = T;
46
61
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
62
|
48
- = help: the clause will not be checked when the type alias is used, and should be removed
63
+ help: the clause will not be checked when the type alias is used, and should be removed
64
+ |
65
+ LL | type _TaWhere6<T> = T;
66
+ | --
49
67
50
68
warning: bounds on generic parameters are not enforced in type aliases
51
69
--> $DIR/type-alias.rs:12:20
52
70
|
53
71
LL | type _TaInline1<T: Iterator<Item: Copy>> = T;
54
72
| ^^^^^^^^^^^^^^^^^^^^
55
73
|
56
- = help: the bound will not be checked when the type alias is used, and should be removed
74
+ help: the bound will not be checked when the type alias is used, and should be removed
75
+ |
76
+ LL | type _TaInline1<T> = T;
77
+ | --
57
78
58
79
warning: bounds on generic parameters are not enforced in type aliases
59
80
--> $DIR/type-alias.rs:13:20
60
81
|
61
82
LL | type _TaInline2<T: Iterator<Item: 'static>> = T;
62
83
| ^^^^^^^^^^^^^^^^^^^^^^^
63
84
|
64
- = help: the bound will not be checked when the type alias is used, and should be removed
85
+ help: the bound will not be checked when the type alias is used, and should be removed
86
+ |
87
+ LL | type _TaInline2<T> = T;
88
+ | --
65
89
66
90
warning: bounds on generic parameters are not enforced in type aliases
67
91
--> $DIR/type-alias.rs:14:20
68
92
|
69
93
LL | type _TaInline3<T: Iterator<Item: 'static>> = T;
70
94
| ^^^^^^^^^^^^^^^^^^^^^^^
71
95
|
72
- = help: the bound will not be checked when the type alias is used, and should be removed
96
+ help: the bound will not be checked when the type alias is used, and should be removed
97
+ |
98
+ LL | type _TaInline3<T> = T;
99
+ | --
73
100
74
101
warning: bounds on generic parameters are not enforced in type aliases
75
102
--> $DIR/type-alias.rs:15:20
76
103
|
77
104
LL | type _TaInline4<T: Iterator<Item: 'static + Copy + Send>> = T;
78
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79
106
|
80
- = help: the bound will not be checked when the type alias is used, and should be removed
107
+ help: the bound will not be checked when the type alias is used, and should be removed
108
+ |
109
+ LL | type _TaInline4<T> = T;
110
+ | --
81
111
82
112
warning: bounds on generic parameters are not enforced in type aliases
83
113
--> $DIR/type-alias.rs:16:20
84
114
|
85
115
LL | type _TaInline5<T: Iterator<Item: for<'a> Into<&'a u8>>> = T;
86
116
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
117
|
88
- = help: the bound will not be checked when the type alias is used, and should be removed
118
+ help: the bound will not be checked when the type alias is used, and should be removed
119
+ |
120
+ LL | type _TaInline5<T> = T;
121
+ | --
89
122
90
123
warning: bounds on generic parameters are not enforced in type aliases
91
124
--> $DIR/type-alias.rs:17:20
92
125
|
93
126
LL | type _TaInline6<T: Iterator<Item: Iterator<Item: Copy>>> = T;
94
127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
128
|
96
- = help: the bound will not be checked when the type alias is used, and should be removed
129
+ help: the bound will not be checked when the type alias is used, and should be removed
130
+ |
131
+ LL | type _TaInline6<T> = T;
132
+ | --
97
133
0 commit comments