about summary refs log tree commit diff
path: root/tests/ui/cast/ptr-to-trait-obj-wrap-upcast.stderr
blob: 5687aba625ff733334e95155f583731f039361fa (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0606]: casting `*const (dyn Sub + 'static)` as `*const Wrapper<dyn Super>` is invalid
  --> $DIR/ptr-to-trait-obj-wrap-upcast.rs:11:5
   |
LL |     ptr as _
   |     ^^^^^^^^
   |
   = note: the trait objects may have different vtables

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0606`.