]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/auto-impl-for-trait.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }