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

10 lines
424 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0033]: type `std::boxed::Box<(dyn MyTrait + 'static)>` cannot be dereferenced
2018-12-25 09:56:47 -06:00
--> $DIR/issue-4972.rs:14:25
2018-07-15 16:11:54 -05:00
|
LL | TraitWrapper::A(box ref map) => map, //~ ERROR cannot be dereferenced
| ^^^^^^^^^^^ type `std::boxed::Box<(dyn MyTrait + 'static)>` cannot be dereferenced
error: aborting due to previous error
For more information about this error, try `rustc --explain E0033`.