rust/src/test/ui/issues/issue-41139.stderr
2019-05-29 00:57:31 -04:00

10 lines
348 B
Plaintext

error[E0161]: cannot move a value of type dyn Trait: the size of dyn Trait cannot be statically determined
--> $DIR/issue-41139.rs:6:27
|
LL | let t : &dyn Trait = &get_function()();
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0161`.