rust/src/test/ui/issue-41139.stderr
2018-07-15 17:10:52 -07:00

10 lines
365 B
Plaintext

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