]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/sized-yield.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / generator / sized-yield.stderr
1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/sized-yield.rs:8:26
3 |
4 LL | let mut gen = move || {
5 | __________________________^
6 LL | | //~^ ERROR the size for values of type
7 LL | | yield s[..];
8 LL | | };
9 | |____^ doesn't have a size known at compile-time
10 |
11 = help: the trait `std::marker::Sized` is not implemented for `str`
12 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
13 = note: the yield type of a generator must have a statically known size
14
15 error[E0277]: the size for values of type `str` cannot be known at compilation time
16 --> $DIR/sized-yield.rs:12:23
17 |
18 LL | Pin::new(&mut gen).resume();
19 | ^^^^^^ doesn't have a size known at compile-time
20 |
21 = help: the trait `std::marker::Sized` is not implemented for `str`
22 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0277`.