]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/sized-yield.stderr
Extend invalid floating point literal suffix suggestion
[rust.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 | |
7 LL | |        yield s[..];
8 LL | |    };
9    | |____^ doesn't have a size known at compile-time
10    |
11    = help: the trait `Sized` is not implemented for `str`
12    = note: the yield type of a generator must have a statically known size
13
14 error[E0277]: the size for values of type `str` cannot be known at compilation time
15   --> $DIR/sized-yield.rs:12:23
16    |
17 LL |    Pin::new(&mut gen).resume(());
18    |                       ^^^^^^ doesn't have a size known at compile-time
19    |
20    = help: the trait `Sized` is not implemented for `str`
21 note: required by a bound in `GeneratorState`
22   --> $SRC_DIR/core/src/ops/generator.rs:LL:COL
23    |
24 LL | pub enum GeneratorState<Y, R> {
25    |                         ^ required by this bound in `GeneratorState`
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.