You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: `#[warn(incomplete_features)]` on by default
9
9
10
10
error[E0277]: the size for values of type `V` cannot be known at compilation time
11
-
--> $DIR/bad-sized-cond.rs:11:5
11
+
--> $DIR/bad-sized-cond.rs:17:5
12
12
|
13
13
LL | foo();
14
14
| ^^^ doesn't have a size known at compile-time
@@ -23,6 +23,40 @@ LL | where
23
23
LL | for<V> V: Sized,
24
24
| ^^^^^ required by this bound in `foo`
25
25
26
-
error: aborting due to previous error; 1 warning emitted
26
+
error[E0277]: the size for values of type `Placeholder(Placeholder { universe: U3, name: Param(DefId(0:6 ~ bad_sized_cond[9450]::bar::V), "V") })` cannot be known at compilation time
27
+
--> $DIR/bad-sized-cond.rs:20:5
28
+
|
29
+
LL | bar();
30
+
| ^^^ doesn't have a size known at compile-time
31
+
|
32
+
= help: the trait `Sized` is not implemented for `Placeholder(Placeholder { universe: U3, name: Param(DefId(0:6 ~ bad_sized_cond[9450]::bar::V), "V") })`
33
+
= note: required for `V` to implement `IntoIterator`
34
+
note: required by a bound in `bar`
35
+
--> $DIR/bad-sized-cond.rs:12:15
36
+
|
37
+
LL | pub fn bar()
38
+
| --- required by a bound in this
39
+
LL | where
40
+
LL | for<V> V: IntoIterator,
41
+
| ^^^^^^^^^^^^ required by this bound in `bar`
42
+
43
+
error[E0277]: `Placeholder(Placeholder { universe: U3, name: Param(DefId(0:6 ~ bad_sized_cond[9450]::bar::V), "V") })` is not an iterator
44
+
--> $DIR/bad-sized-cond.rs:20:5
45
+
|
46
+
LL | bar();
47
+
| ^^^ `Placeholder(Placeholder { universe: U3, name: Param(DefId(0:6 ~ bad_sized_cond[9450]::bar::V), "V") })` is not an iterator
48
+
|
49
+
= help: the trait `Iterator` is not implemented for `Placeholder(Placeholder { universe: U3, name: Param(DefId(0:6 ~ bad_sized_cond[9450]::bar::V), "V") })`
50
+
= note: required for `V` to implement `IntoIterator`
51
+
note: required by a bound in `bar`
52
+
--> $DIR/bad-sized-cond.rs:12:15
53
+
|
54
+
LL | pub fn bar()
55
+
| --- required by a bound in this
56
+
LL | where
57
+
LL | for<V> V: IntoIterator,
58
+
| ^^^^^^^^^^^^ required by this bound in `bar`
59
+
60
+
error: aborting due to 3 previous errors; 1 warning emitted
27
61
28
62
For more information about this error, try `rustc --explain E0277`.
0 commit comments