]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-4972.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-4972.stderr
1 error[E0033]: type `Box<(dyn MyTrait + 'static)>` cannot be dereferenced
2   --> $DIR/issue-4972.rs:14:25
3    |
4 LL |         TraitWrapper::A(box ref map) => map,
5    |                         ^^^^^^^^^^^ type `Box<(dyn MyTrait + 'static)>` cannot be dereferenced
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0033`.