@@ -5,7 +5,7 @@ LL | fn server() -> impl {
55 | ^^^^
66
77error[E0412]: cannot find type `F` in this scope
8- --> $DIR/issue-78720.rs:14 :12
8+ --> $DIR/issue-78720.rs:13 :12
99 |
1010LL | _func: F,
1111 | ^
@@ -22,14 +22,8 @@ help: you might be missing a type parameter
2222LL | struct Map2<Segment2, F> {
2323 | +++
2424
25- error[E0282]: type annotations needed
26- --> $DIR/issue-78720.rs:1:16
27- |
28- LL | fn server() -> impl {
29- | ^^^^ cannot infer type
30-
3125error[E0308]: mismatched types
32- --> $DIR/issue-78720.rs:8 :39
26+ --> $DIR/issue-78720.rs:7 :39
3327 |
3428LL | fn map2<F>(self, f: F) -> Map2<F> {}
3529 | ^^ expected `Map2<F>`, found `()`
@@ -38,7 +32,7 @@ LL | fn map2<F>(self, f: F) -> Map2<F> {}
3832 found unit type `()`
3933
4034error[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
4236 |
4337LL | fn map2<F>(self, f: F) -> Map2<F> {}
4438 | ^^^^ 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
5347LL | fn map2<F>(&self, f: F) -> Map2<F> {}
5448 | +
5549
56- error: aborting due to 5 previous errors
50+ error: aborting due to 4 previous errors
5751
58- Some errors have detailed explanations: E0277, E0282, E0308, E0412.
52+ Some errors have detailed explanations: E0277, E0308, E0412.
5953For more information about an error, try `rustc --explain E0277`.
0 commit comments