]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/issue-105742.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / rustdoc-ui / issue-105742.rs
1 // compile-flags: -Znormalize-docs
2
3 use std::ops::Index;
4
5 pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
6 //~^ ERROR
7 //~^^ ERROR
8 //~^^^ ERROR
9     let _ = s;
10 }
11
12 pub trait SVec: Index<
13     <Self as SVec>::Item,
14 //~^ ERROR
15 //~^^ ERROR
16 //~^^^ ERROR
17 //~^^^^ ERROR
18     Output = <Index<<Self as SVec>::Item,
19 //~^ ERROR
20 //~^^ ERROR
21 //~^^^ ERROR
22 //~^^^^ ERROR
23     Output = <Self as SVec>::Item> as SVec>::Item,
24 //~^ ERROR
25 //~^^ ERROR
26 //~^^^ ERROR
27 //~^^^^ ERROR
28 //~^^^^^ ERROR
29 //~^^^^^^ ERROR
30 //~^^^^^^^ ERROR
31 //~^^^^^^^^ ERROR
32 > {
33     type Item<'a, T>;
34
35     fn len(&self) -> <Self as SVec>::Item;
36     //~^ ERROR
37     //~^^ ERROR
38     //~^^^ ERROR
39     //~^^^^ ERROR
40 }