@@ -5,7 +5,7 @@ LL | fn server() -> impl {
5
5
| ^^^^
6
6
7
7
error[E0412]: cannot find type `F` in this scope
8
- --> $DIR/issue-78720.rs:14 :12
8
+ --> $DIR/issue-78720.rs:13 :12
9
9
|
10
10
LL | _func: F,
11
11
| ^
@@ -22,14 +22,8 @@ help: you might be missing a type parameter
22
22
LL | struct Map2<Segment2, F> {
23
23
| +++
24
24
25
- error[E0282]: type annotations needed
26
- --> $DIR/issue-78720.rs:1:16
27
- |
28
- LL | fn server() -> impl {
29
- | ^^^^ cannot infer type
30
-
31
25
error[E0308]: mismatched types
32
- --> $DIR/issue-78720.rs:8 :39
26
+ --> $DIR/issue-78720.rs:7 :39
33
27
|
34
28
LL | fn map2<F>(self, f: F) -> Map2<F> {}
35
29
| ^^ expected `Map2<F>`, found `()`
@@ -38,7 +32,7 @@ LL | fn map2<F>(self, f: F) -> Map2<F> {}
38
32
found unit type `()`
39
33
40
34
error[E0277]: the size for values of type `Self` cannot be known at compilation time
41
- --> $DIR/issue-78720.rs:8 :16
35
+ --> $DIR/issue-78720.rs:7 :16
42
36
|
43
37
LL | fn map2<F>(self, f: F) -> Map2<F> {}
44
38
| ^^^^ doesn't have a size known at compile-time
@@ -53,7 +47,7 @@ help: function arguments must have a statically known size, borrowed types alway
53
47
LL | fn map2<F>(&self, f: F) -> Map2<F> {}
54
48
| +
55
49
56
- error: aborting due to 5 previous errors
50
+ error: aborting due to 4 previous errors
57
51
58
- Some errors have detailed explanations: E0277, E0282, E0308, E0412.
52
+ Some errors have detailed explanations: E0277, E0308, E0412.
59
53
For more information about an error, try `rustc --explain E0277`.
0 commit comments