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