blob: 8849a254584572f58799bcee76b76407a0384b8c [file]
// Test for https://github.com/rust-lang/rust/issues/48463 issue.
//@ check-pass
use std::any::Any;
use std::ops::Deref;
pub struct AnyValue {
val: Box<Any>,
}
impl Deref for AnyValue {
type Target = Any;
fn deref(&self) -> &Any {
&*self.val
}
}