11error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
2-   --> $DIR/closure-return-type-must-be-sized.rs:54:5 
2+   --> $DIR/closure-return-type-must-be-sized.rs:54:22 
33   |
44LL |     a::foo::<fn() -> dyn A>();
5-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
5+    |                       ^^^^^ doesn't have a size known at compile-time
66   |
77   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
88   = note: required because it appears within the type `fn() -> dyn A`
99
1010error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
11-   --> $DIR/closure-return-type-must-be-sized.rs:55:14 
11+   --> $DIR/closure-return-type-must-be-sized.rs:55:22 
1212   |
1313LL |     a::bar::<fn() -> dyn A, _>();
14-    |              ^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
14+    |                       ^^^^^ doesn't have a size known at compile-time
1515   |
1616   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
1717   = note: required because it appears within the type `fn() -> dyn A`
@@ -22,28 +22,28 @@ LL |     pub fn bar<F: FnOnce() -> R, R: ?Sized>() {}
2222   |                   ^^^^^^^^^^^^^ required by this bound in `bar`
2323
2424error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
25-   --> $DIR/closure-return-type-must-be-sized.rs:56:5 
25+   --> $DIR/closure-return-type-must-be-sized.rs:56:22 
2626   |
2727LL |     a::baz::<fn() -> dyn A>();
28-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
28+    |                       ^^^^^ doesn't have a size known at compile-time
2929   |
3030   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
3131   = note: required because it appears within the type `fn() -> dyn A`
3232
3333error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
34-   --> $DIR/closure-return-type-must-be-sized.rs:61:5 
34+   --> $DIR/closure-return-type-must-be-sized.rs:61:22 
3535   |
3636LL |     b::foo::<fn() -> dyn A>();
37-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
37+    |                       ^^^^^ doesn't have a size known at compile-time
3838   |
3939   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
4040   = note: required because it appears within the type `fn() -> dyn A`
4141
4242error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
43-   --> $DIR/closure-return-type-must-be-sized.rs:62:14 
43+   --> $DIR/closure-return-type-must-be-sized.rs:62:22 
4444   |
4545LL |     b::bar::<fn() -> dyn A, _>();
46-    |              ^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
46+    |                       ^^^^^ doesn't have a size known at compile-time
4747   |
4848   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
4949   = note: required because it appears within the type `fn() -> dyn A`
@@ -54,28 +54,28 @@ LL |     pub fn bar<F: Fn() -> R, R: ?Sized>() {}
5454   |                   ^^^^^^^^^ required by this bound in `bar`
5555
5656error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
57-   --> $DIR/closure-return-type-must-be-sized.rs:63:5 
57+   --> $DIR/closure-return-type-must-be-sized.rs:63:22 
5858   |
5959LL |     b::baz::<fn() -> dyn A>();
60-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
60+    |                       ^^^^^ doesn't have a size known at compile-time
6161   |
6262   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
6363   = note: required because it appears within the type `fn() -> dyn A`
6464
6565error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
66-   --> $DIR/closure-return-type-must-be-sized.rs:68:5 
66+   --> $DIR/closure-return-type-must-be-sized.rs:68:22 
6767   |
6868LL |     c::foo::<fn() -> dyn A>();
69-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
69+    |                       ^^^^^ doesn't have a size known at compile-time
7070   |
7171   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
7272   = note: required because it appears within the type `fn() -> dyn A`
7373
7474error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
75-   --> $DIR/closure-return-type-must-be-sized.rs:69:14 
75+   --> $DIR/closure-return-type-must-be-sized.rs:69:22 
7676   |
7777LL |     c::bar::<fn() -> dyn A, _>();
78-    |              ^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
78+    |                       ^^^^^ doesn't have a size known at compile-time
7979   |
8080   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
8181   = note: required because it appears within the type `fn() -> dyn A`
@@ -86,10 +86,10 @@ LL |     pub fn bar<F: FnMut() -> R, R: ?Sized>() {}
8686   |                   ^^^^^^^^^^^^ required by this bound in `bar`
8787
8888error[E0277]: the size for values of type `dyn A` cannot be known at compilation time
89-   --> $DIR/closure-return-type-must-be-sized.rs:70:5 
89+   --> $DIR/closure-return-type-must-be-sized.rs:70:22 
9090   |
9191LL |     c::baz::<fn() -> dyn A>();
92-    |     ^^^^^^^^^^^^^^^^^^^^ ^^^^^ doesn't have a size known at compile-time
92+    |                       ^^^^^ doesn't have a size known at compile-time
9393   |
9494   = help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
9595   = note: required because it appears within the type `fn() -> dyn A`
0 commit comments