2018-07-10 16:10:13 -05:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2023-10-19 11:06:43 -05:00
|
|
|
--> $DIR/sized-yield.rs:8:27
|
2018-01-28 13:23:49 -06:00
|
|
|
|
|
2023-10-19 11:06:43 -05:00
|
|
|
LL | let mut gen = move || {
|
|
|
|
| ___________________________^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2023-10-19 11:06:43 -05:00
|
|
|
LL | | yield s[..];
|
|
|
|
LL | | };
|
|
|
|
| |_____^ doesn't have a size known at compile-time
|
2018-01-28 13:23:49 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `str`
|
2023-10-19 16:46:28 -05:00
|
|
|
= note: the yield type of a coroutine must have a statically known size
|
2018-01-28 13:23:49 -06:00
|
|
|
|
2018-07-10 16:10:13 -05:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2023-10-19 11:06:43 -05:00
|
|
|
--> $DIR/sized-yield.rs:12:24
|
2018-01-28 13:23:49 -06:00
|
|
|
|
|
2023-10-19 11:06:43 -05:00
|
|
|
LL | Pin::new(&mut gen).resume(());
|
|
|
|
| ^^^^^^ doesn't have a size known at compile-time
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `str`
|
2023-10-19 11:06:43 -05:00
|
|
|
note: required by a bound in `CoroutineState`
|
2023-10-19 16:46:28 -05:00
|
|
|
--> $SRC_DIR/core/src/ops/coroutine.rs:LL:COL
|
2018-01-28 13:23:49 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|