about summary refs log tree commit diff
path: root/tests/rustdoc-js/assoc-type.rs
blob: aee8f4b1c3fa8bbfcf6c14bf49d7b7a57d6a7fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![feature(rustdoc_internals)]

pub fn my_fn<X: other::Iterator<Item = Something>>(_x: X) -> u32 {
    3
}

pub struct Something;

pub mod my {
    #[doc(search_unbox)]
    pub trait Iterator<T> {}
    pub fn other_fn<X: Iterator<crate::Something>>(_: X) -> u32 {
        3
    }
}

pub mod other {
    #[doc(search_unbox)]
    pub trait Iterator {
        type Item;
    }
}