@@ -5,145 +5,145 @@ LL | #![feature(const_fn_trait_ref_impls)]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^
6
6
7
7
error: `[const]` can only be applied to `#[const_trait]` traits
8
- --> $DIR/fn_trait_refs.rs:14:6
8
+ --> $DIR/fn_trait_refs.rs:14:8
9
9
|
10
10
LL | T: [const] Fn<()> + [const] Destruct,
11
- | ^^ ^^^^^^^ can't be applied to `Fn`
11
+ | ^^^^^^^ can't be applied to `Fn`
12
12
|
13
13
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
14
14
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
15
15
16
16
error: `[const]` can only be applied to `#[const_trait]` traits
17
- --> $DIR/fn_trait_refs.rs:14:6
17
+ --> $DIR/fn_trait_refs.rs:14:8
18
18
|
19
19
LL | T: [const] Fn<()> + [const] Destruct,
20
- | ^^ ^^^^^^^ can't be applied to `Fn`
20
+ | ^^^^^^^ can't be applied to `Fn`
21
21
|
22
22
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
23
23
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
24
24
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
25
25
26
26
error: `[const]` can only be applied to `#[const_trait]` traits
27
- --> $DIR/fn_trait_refs.rs:14:6
27
+ --> $DIR/fn_trait_refs.rs:14:8
28
28
|
29
29
LL | T: [const] Fn<()> + [const] Destruct,
30
- | ^^ ^^^^^^^ can't be applied to `Fn`
30
+ | ^^^^^^^ can't be applied to `Fn`
31
31
|
32
32
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
33
33
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
34
34
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
35
35
36
36
error: `[const]` can only be applied to `#[const_trait]` traits
37
- --> $DIR/fn_trait_refs.rs:21:6
37
+ --> $DIR/fn_trait_refs.rs:21:8
38
38
|
39
39
LL | T: [const] FnMut<()> + [const] Destruct,
40
- | ^^ ^^^^^^^ can't be applied to `FnMut`
40
+ | ^^^^^^^ can't be applied to `FnMut`
41
41
|
42
42
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
43
43
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
44
44
45
45
error: `[const]` can only be applied to `#[const_trait]` traits
46
- --> $DIR/fn_trait_refs.rs:21:6
46
+ --> $DIR/fn_trait_refs.rs:21:8
47
47
|
48
48
LL | T: [const] FnMut<()> + [const] Destruct,
49
- | ^^ ^^^^^^^ can't be applied to `FnMut`
49
+ | ^^^^^^^ can't be applied to `FnMut`
50
50
|
51
51
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
52
52
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
53
53
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
54
54
55
55
error: `[const]` can only be applied to `#[const_trait]` traits
56
- --> $DIR/fn_trait_refs.rs:21:6
56
+ --> $DIR/fn_trait_refs.rs:21:8
57
57
|
58
58
LL | T: [const] FnMut<()> + [const] Destruct,
59
- | ^^ ^^^^^^^ can't be applied to `FnMut`
59
+ | ^^^^^^^ can't be applied to `FnMut`
60
60
|
61
61
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
62
62
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
63
63
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
64
64
65
65
error: `[const]` can only be applied to `#[const_trait]` traits
66
- --> $DIR/fn_trait_refs.rs:28:6
66
+ --> $DIR/fn_trait_refs.rs:28:8
67
67
|
68
68
LL | T: [const] FnOnce<()>,
69
- | ^^ ^^^^^^^ can't be applied to `FnOnce`
69
+ | ^^^^^^^ can't be applied to `FnOnce`
70
70
|
71
71
note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
72
72
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
73
73
74
74
error: `[const]` can only be applied to `#[const_trait]` traits
75
- --> $DIR/fn_trait_refs.rs:28:6
75
+ --> $DIR/fn_trait_refs.rs:28:8
76
76
|
77
77
LL | T: [const] FnOnce<()>,
78
- | ^^ ^^^^^^^ can't be applied to `FnOnce`
78
+ | ^^^^^^^ can't be applied to `FnOnce`
79
79
|
80
80
note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
81
81
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
82
82
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
83
83
84
84
error: `[const]` can only be applied to `#[const_trait]` traits
85
- --> $DIR/fn_trait_refs.rs:28:6
85
+ --> $DIR/fn_trait_refs.rs:28:8
86
86
|
87
87
LL | T: [const] FnOnce<()>,
88
- | ^^ ^^^^^^^ can't be applied to `FnOnce`
88
+ | ^^^^^^^ can't be applied to `FnOnce`
89
89
|
90
90
note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
91
91
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
92
92
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
93
93
94
94
error: `[const]` can only be applied to `#[const_trait]` traits
95
- --> $DIR/fn_trait_refs.rs:35:6
95
+ --> $DIR/fn_trait_refs.rs:35:8
96
96
|
97
97
LL | T: [const] Fn<()> + [const] Destruct,
98
- | ^^ ^^^^^^^ can't be applied to `Fn`
98
+ | ^^^^^^^ can't be applied to `Fn`
99
99
|
100
100
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
101
101
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
102
102
103
103
error: `[const]` can only be applied to `#[const_trait]` traits
104
- --> $DIR/fn_trait_refs.rs:35:6
104
+ --> $DIR/fn_trait_refs.rs:35:8
105
105
|
106
106
LL | T: [const] Fn<()> + [const] Destruct,
107
- | ^^ ^^^^^^^ can't be applied to `Fn`
107
+ | ^^^^^^^ can't be applied to `Fn`
108
108
|
109
109
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
110
110
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
111
111
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
112
112
113
113
error: `[const]` can only be applied to `#[const_trait]` traits
114
- --> $DIR/fn_trait_refs.rs:35:6
114
+ --> $DIR/fn_trait_refs.rs:35:8
115
115
|
116
116
LL | T: [const] Fn<()> + [const] Destruct,
117
- | ^^ ^^^^^^^ can't be applied to `Fn`
117
+ | ^^^^^^^ can't be applied to `Fn`
118
118
|
119
119
note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
120
120
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
121
121
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
122
122
123
123
error: `[const]` can only be applied to `#[const_trait]` traits
124
- --> $DIR/fn_trait_refs.rs:49:6
124
+ --> $DIR/fn_trait_refs.rs:49:8
125
125
|
126
126
LL | T: [const] FnMut<()> + [const] Destruct,
127
- | ^^ ^^^^^^^ can't be applied to `FnMut`
127
+ | ^^^^^^^ can't be applied to `FnMut`
128
128
|
129
129
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
130
130
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
131
131
132
132
error: `[const]` can only be applied to `#[const_trait]` traits
133
- --> $DIR/fn_trait_refs.rs:49:6
133
+ --> $DIR/fn_trait_refs.rs:49:8
134
134
|
135
135
LL | T: [const] FnMut<()> + [const] Destruct,
136
- | ^^ ^^^^^^^ can't be applied to `FnMut`
136
+ | ^^^^^^^ can't be applied to `FnMut`
137
137
|
138
138
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
139
139
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
140
140
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
141
141
142
142
error: `[const]` can only be applied to `#[const_trait]` traits
143
- --> $DIR/fn_trait_refs.rs:49:6
143
+ --> $DIR/fn_trait_refs.rs:49:8
144
144
|
145
145
LL | T: [const] FnMut<()> + [const] Destruct,
146
- | ^^ ^^^^^^^ can't be applied to `FnMut`
146
+ | ^^^^^^^ can't be applied to `FnMut`
147
147
|
148
148
note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
149
149
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
0 commit comments