]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auto-impl-for-trait.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / auto-impl-for-trait.rs
1 // Test for https://github.com/rust-lang/rust/issues/48463 issue.
2
3 use std::any::Any;
4 use std::ops::Deref;
5
6 pub struct AnyValue {
7     val: Box<Any>,
8 }
9
10 impl Deref for AnyValue {
11     type Target = Any;
12
13     fn deref(&self) -> &Any {
14         &*self.val
15     }
16 }