2023-02-17 15:01:22 -06:00
|
|
|
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
--> $DIR/bad-sized-cond.rs:1:12
|
|
|
|
|
|
|
|
|
LL | #![feature(non_lifetime_binders)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
|
|
error[E0277]: the size for values of type `V` cannot be known at compilation time
|
2023-02-17 15:15:18 -06:00
|
|
|
--> $DIR/bad-sized-cond.rs:17:5
|
2023-02-17 15:01:22 -06:00
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `V`
|
|
|
|
note: required by a bound in `foo`
|
|
|
|
--> $DIR/bad-sized-cond.rs:6:15
|
|
|
|
|
|
|
|
|
LL | pub fn foo()
|
2023-02-20 23:21:07 -06:00
|
|
|
| --- required by a bound in this function
|
2023-02-17 15:01:22 -06:00
|
|
|
LL | where
|
|
|
|
LL | for<V> V: Sized,
|
|
|
|
| ^^^^^ required by this bound in `foo`
|
|
|
|
|
2023-02-17 15:21:27 -06:00
|
|
|
error[E0277]: the size for values of type `V` cannot be known at compilation time
|
2023-02-17 15:15:18 -06:00
|
|
|
--> $DIR/bad-sized-cond.rs:20:5
|
|
|
|
|
|
|
|
|
LL | bar();
|
|
|
|
| ^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
2023-02-17 15:21:27 -06:00
|
|
|
= help: the trait `Sized` is not implemented for `V`
|
2023-02-17 15:15:18 -06:00
|
|
|
= note: required for `V` to implement `IntoIterator`
|
|
|
|
note: required by a bound in `bar`
|
|
|
|
--> $DIR/bad-sized-cond.rs:12:15
|
|
|
|
|
|
|
|
|
LL | pub fn bar()
|
2023-02-20 23:21:07 -06:00
|
|
|
| --- required by a bound in this function
|
2023-02-17 15:15:18 -06:00
|
|
|
LL | where
|
|
|
|
LL | for<V> V: IntoIterator,
|
|
|
|
| ^^^^^^^^^^^^ required by this bound in `bar`
|
|
|
|
|
2023-02-17 15:21:27 -06:00
|
|
|
error[E0277]: `V` is not an iterator
|
2023-02-17 15:15:18 -06:00
|
|
|
--> $DIR/bad-sized-cond.rs:20:5
|
|
|
|
|
|
|
|
|
LL | bar();
|
2023-02-17 15:21:27 -06:00
|
|
|
| ^^^ `V` is not an iterator
|
2023-02-17 15:15:18 -06:00
|
|
|
|
|
2023-02-17 15:21:27 -06:00
|
|
|
= help: the trait `Iterator` is not implemented for `V`
|
2023-02-17 15:15:18 -06:00
|
|
|
= note: required for `V` to implement `IntoIterator`
|
|
|
|
note: required by a bound in `bar`
|
|
|
|
--> $DIR/bad-sized-cond.rs:12:15
|
|
|
|
|
|
|
|
|
LL | pub fn bar()
|
2023-02-20 23:21:07 -06:00
|
|
|
| --- required by a bound in this function
|
2023-02-17 15:15:18 -06:00
|
|
|
LL | where
|
|
|
|
LL | for<V> V: IntoIterator,
|
|
|
|
| ^^^^^^^^^^^^ required by this bound in `bar`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors; 1 warning emitted
|
2023-02-17 15:01:22 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|