1
1
error[E0425]: cannot find function `f_t` in this scope
2
- --> $DIR/const-generics-closure.rs:7 :9
2
+ --> $DIR/const-generics-closure.rs:6 :9
3
3
|
4
4
LL | f_t(&*s);
5
5
| ^^^ not found in this scope
@@ -10,7 +10,7 @@ LL | fn bar<const f_t: /* Type */>() -> impl Into<
10
10
| +++++++++++++++++++++++
11
11
12
12
error[E0425]: cannot find value `s` in this scope
13
- --> $DIR/const-generics-closure.rs:7 :15
13
+ --> $DIR/const-generics-closure.rs:6 :15
14
14
|
15
15
LL | f_t(&*s);
16
16
| ^
@@ -29,7 +29,7 @@ LL | fn bar<const s: /* Type */>() -> impl Into<
29
29
| +++++++++++++++++++++
30
30
31
31
error[E0425]: cannot find function `c` in this scope
32
- --> $DIR/const-generics-closure.rs:11 :9
32
+ --> $DIR/const-generics-closure.rs:10 :9
33
33
|
34
34
LL | c(&*s);
35
35
| ^
@@ -48,7 +48,7 @@ LL | fn bar<const c: /* Type */>() -> impl Into<
48
48
| +++++++++++++++++++++
49
49
50
50
error[E0425]: cannot find value `s` in this scope
51
- --> $DIR/const-generics-closure.rs:11 :13
51
+ --> $DIR/const-generics-closure.rs:10 :13
52
52
|
53
53
LL | c(&*s);
54
54
| ^
@@ -67,7 +67,7 @@ LL | fn bar<const s: /* Type */>() -> impl Into<
67
67
| +++++++++++++++++++++
68
68
69
69
error[E0425]: cannot find function `c` in this scope
70
- --> $DIR/const-generics-closure.rs:15 :9
70
+ --> $DIR/const-generics-closure.rs:14 :9
71
71
|
72
72
LL | c(&*s);
73
73
| ^
@@ -86,7 +86,7 @@ LL | fn bar<const c: /* Type */>() -> impl Into<
86
86
| +++++++++++++++++++++
87
87
88
88
error[E0425]: cannot find value `s` in this scope
89
- --> $DIR/const-generics-closure.rs:15 :13
89
+ --> $DIR/const-generics-closure.rs:14 :13
90
90
|
91
91
LL | c(&*s);
92
92
| ^
@@ -105,7 +105,7 @@ LL | fn bar<const s: /* Type */>() -> impl Into<
105
105
| +++++++++++++++++++++
106
106
107
107
error[E0425]: cannot find function `c1` in this scope
108
- --> $DIR/const-generics-closure.rs:21 :9
108
+ --> $DIR/const-generics-closure.rs:20 :9
109
109
|
110
110
LL | c1(*x);
111
111
| ^^ not found in this scope
@@ -116,7 +116,7 @@ LL | fn bar<const c1: /* Type */>() -> impl Into<
116
116
| ++++++++++++++++++++++
117
117
118
118
error[E0425]: cannot find value `x` in this scope
119
- --> $DIR/const-generics-closure.rs:21 :13
119
+ --> $DIR/const-generics-closure.rs:20 :13
120
120
|
121
121
LL | struct X;
122
122
| --------- similarly named unit struct `X` defined here
@@ -135,7 +135,7 @@ LL | fn bar<const x: /* Type */>() -> impl Into<
135
135
| +++++++++++++++++++++
136
136
137
137
error[E0658]: `for<...>` binders for closures are experimental
138
- --> $DIR/const-generics-closure.rs:25 :17
138
+ --> $DIR/const-generics-closure.rs:24 :17
139
139
|
140
140
LL | let _ = for<'a, 'b> |x: &'a &'a Vec<&'b u32>, b: bool| -> &'a Vec<&'b u32> { *x };
141
141
| ^^^^^^^^^^^
@@ -146,13 +146,13 @@ LL | let _ = for<'a, 'b> |x: &'a &'a Vec<&'b u32>, b: bool| -> &'a Vec<&
146
146
= help: consider removing `for<...>`
147
147
148
148
error[E0601]: `main` function not found in crate `const_generics_closure`
149
- --> $DIR/const-generics-closure.rs:30 :2
149
+ --> $DIR/const-generics-closure.rs:29 :2
150
150
|
151
151
LL | }
152
152
| ^ consider adding a `main` function to `$DIR/const-generics-closure.rs`
153
153
154
154
error[E0308]: mismatched types
155
- --> $DIR/const-generics-closure.rs:5 :10
155
+ --> $DIR/const-generics-closure.rs:4 :10
156
156
|
157
157
LL | [u8; {
158
158
| __________^
0 commit comments