]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the size for values of type `<T as Get>::Value` cannot be known at compilation time |
e74abb32 | 2 | --> $DIR/associated-types-unsized.rs:10:9 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | let x = t.get(); |
b7449926 XL |
5 | | ^ doesn't have a size known at compile-time |
6 | | | |
1b1a35ee | 7 | = help: the trait `Sized` is not implemented for `<T as Get>::Value` |
b7449926 XL |
8 | = note: all local variables must have a statically known size |
9 | = help: unsized locals are gated as an unstable feature | |
f9f354fc XL |
10 | help: consider further restricting the associated type |
11 | | | |
1b1a35ee XL |
12 | LL | fn foo<T:Get>(t: T) where <T as Get>::Value: Sized { |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |