|
| 1 | +warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/bad-sized-cond.rs:1:12 |
| 3 | + | |
| 4 | +LL | #![feature(non_lifetime_binders)] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information |
| 8 | + = note: `#[warn(incomplete_features)]` on by default |
| 9 | + |
| 10 | +error[E0277]: the size for values of type `V` cannot be known at compilation time |
| 11 | + --> $DIR/bad-sized-cond.rs:17:5 |
| 12 | + | |
| 13 | +LL | foo(); |
| 14 | + | ^^^ doesn't have a size known at compile-time |
| 15 | + | |
| 16 | + = help: the trait `Sized` is not implemented for `V` |
| 17 | +note: required by a bound in `foo` |
| 18 | + --> $DIR/bad-sized-cond.rs:6:15 |
| 19 | + | |
| 20 | +LL | pub fn foo() |
| 21 | + | --- required by a bound in this |
| 22 | +LL | where |
| 23 | +LL | for<V> V: Sized, |
| 24 | + | ^^^^^ required by this bound in `foo` |
| 25 | + |
| 26 | +error[E0277]: the size for values of type `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 `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]: `V` is not an iterator |
| 44 | + --> $DIR/bad-sized-cond.rs:20:5 |
| 45 | + | |
| 46 | +LL | bar(); |
| 47 | + | ^^^ `V` is not an iterator |
| 48 | + | |
| 49 | + = help: the trait `Iterator` is not implemented for `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 |
| 61 | + |
| 62 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments