]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/associated-types-unsized.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-unsized.stderr
CommitLineData
b7449926 1error[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 4LL | 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
10help: consider further restricting the associated type
11 |
1b1a35ee
XL
12LL | fn foo<T:Get>(t: T) where <T as Get>::Value: Sized {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
b7449926
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.