rust/src/test/ui/issues/issue-41139.stderr

10 lines
348 B
Plaintext
Raw Normal View History

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