2018-07-10 23:10:13 +02:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2018-10-04 20:49:38 +02:00
|
|
|
--> $DIR/sized-yield.rs:8:26
|
2018-01-28 20:23:49 +01:00
|
|
|
|
|
2018-06-09 16:53:36 -07:00
|
|
|
LL | let mut gen = move || {
|
2018-01-28 20:23:49 +01:00
|
|
|
| __________________________^
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | yield s[..];
|
|
|
|
LL | | };
|
2018-06-19 15:53:51 -07:00
|
|
|
| |____^ doesn't have a size known at compile-time
|
2018-01-28 20:23:49 +01:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
|
|
|
= note: the yield type of a generator must have a statically known size
|
|
|
|
|
2018-07-10 23:10:13 +02:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2018-10-04 20:49:38 +02:00
|
|
|
--> $DIR/sized-yield.rs:12:23
|
2018-01-28 20:23:49 +01:00
|
|
|
|
|
2020-01-25 20:03:10 +01:00
|
|
|
LL | Pin::new(&mut gen).resume(());
|
2018-10-04 20:49:38 +02:00
|
|
|
| ^^^^^^ doesn't have a size known at compile-time
|
2018-01-28 20:23:49 +01:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
|
|
|
|
|
|
|
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`.
|