os-rust/tests/ui/coroutine/sized-yield.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
907 B
Text
Raw Permalink Normal View History

2018-07-10 23:10:13 +02:00
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/sized-yield.rs:9:5
2018-01-28 20:23:49 +01: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
|
= 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
--> $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
|
= help: the trait `Sized` is not implemented for `str`
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`.