1 // https://github.com/rust-lang/rust/issues/95325
3 // Show methods reachable from Deref of primitive.
8 // @has 'deref_slice_core/struct.MyArray.html'
9 // @has '-' '//*[@id="deref-methods-%5BT%5D"]' 'Methods from Deref<Target = [T]>'
10 // @has '-' '//*[@class="impl-items"]//*[@id="method.len"]' 'pub fn len(&self)'
12 pub struct MyArray<T> {
16 impl<T> Deref for MyArray<T> {
19 fn deref(&self) -> &Self::Target {