2018-01-28 13:23:49 -06:00
|
|
|
error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied
|
|
|
|
--> $DIR/sized-yield.rs:17:26
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let mut gen = move || { //~ ERROR the trait bound `str: std::marker::Sized` is not satisfied
|
2018-01-28 13:23:49 -06:00
|
|
|
| __________________________^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | yield s[..];
|
|
|
|
LL | | };
|
2018-01-28 13:23:49 -06:00
|
|
|
| |____^ `str` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
|
|
|
= note: the yield type of a generator must have a statically known size
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied
|
|
|
|
--> $DIR/sized-yield.rs:20:8
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | gen.resume(); //~ ERROR the trait bound `str: std::marker::Sized` is not satisfied
|
2018-01-28 13:23:49 -06:00
|
|
|
| ^^^^^^ `str` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0277"
|