1
1
error[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
3
3
|
4
4
LL | 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
6
6
|
7
7
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
8
8
= note: required because it appears within the type `fn() -> dyn A`
9
9
10
10
error[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
12
12
|
13
13
LL | 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
15
15
|
16
16
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
17
17
= note: required because it appears within the type `fn() -> dyn A`
@@ -22,28 +22,28 @@ LL | pub fn bar<F: FnOnce() -> R, R: ?Sized>() {}
22
22
| ^^^^^^^^^^^^^ required by this bound in `bar`
23
23
24
24
error[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
26
26
|
27
27
LL | 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
29
29
|
30
30
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
31
31
= note: required because it appears within the type `fn() -> dyn A`
32
32
33
33
error[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
35
35
|
36
36
LL | 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
38
38
|
39
39
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
40
40
= note: required because it appears within the type `fn() -> dyn A`
41
41
42
42
error[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
44
44
|
45
45
LL | 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
47
47
|
48
48
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
49
49
= note: required because it appears within the type `fn() -> dyn A`
@@ -54,28 +54,28 @@ LL | pub fn bar<F: Fn() -> R, R: ?Sized>() {}
54
54
| ^^^^^^^^^ required by this bound in `bar`
55
55
56
56
error[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
58
58
|
59
59
LL | 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
61
61
|
62
62
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
63
63
= note: required because it appears within the type `fn() -> dyn A`
64
64
65
65
error[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
67
67
|
68
68
LL | 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
70
70
|
71
71
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
72
72
= note: required because it appears within the type `fn() -> dyn A`
73
73
74
74
error[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
76
76
|
77
77
LL | 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
79
79
|
80
80
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
81
81
= note: required because it appears within the type `fn() -> dyn A`
@@ -86,10 +86,10 @@ LL | pub fn bar<F: FnMut() -> R, R: ?Sized>() {}
86
86
| ^^^^^^^^^^^^ required by this bound in `bar`
87
87
88
88
error[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
90
90
|
91
91
LL | 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
93
93
|
94
94
= help: within `fn() -> dyn A`, the trait `Sized` is not implemented for `dyn A`
95
95
= note: required because it appears within the type `fn() -> dyn A`
0 commit comments