summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issue-105742.rs
blob: cb1de7433cfaa4d33ef9cbc4ab31cb78cbe653cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// compile-flags: -Znormalize-docs

use std::ops::Index;

pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
//~^ ERROR
//~^^ ERROR
//~^^^ ERROR
    let _ = s;
}

pub trait SVec: Index<
    <Self as SVec>::Item,
//~^ ERROR
//~^^ ERROR
//~^^^ ERROR
//~^^^^ ERROR
    Output = <Index<<Self as SVec>::Item,
//~^ ERROR
//~^^ ERROR
//~^^^ ERROR
//~^^^^ ERROR
    Output = <Self as SVec>::Item> as SVec>::Item,
//~^ ERROR
//~^^ ERROR
//~^^^ ERROR
//~^^^^ ERROR
//~^^^^^ ERROR
//~^^^^^^ ERROR
//~^^^^^^^ ERROR
//~^^^^^^^^ ERROR
> {
    type Item<'a, T>;

    fn len(&self) -> <Self as SVec>::Item;
    //~^ ERROR
    //~^^ ERROR
    //~^^^ ERROR
    //~^^^^ ERROR
}