summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/auto-impl-for-trait.rs
blob: bc658fbfc8cce8af80c5b11a22cb8bee2c9cceb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test for https://github.com/rust-lang/rust/issues/48463 issue.

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
    }
}