]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-31899.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / rustdoc / issue-31899.rs
1 // @has issue_31899/index.html
2 // @hasraw - 'Make this line a bit longer.'
3 // @!hasraw - 'rust rust-example-rendered'
4 // @!hasraw - 'use ndarray::arr2'
5 // @!hasraw - 'prohibited'
6
7 /// A tuple or fixed size array that can be used to index an array.
8 /// Make this line a bit longer.
9 ///
10 /// ```
11 /// use ndarray::arr2;
12 ///
13 /// let mut a = arr2(&[[0, 1], [0, 0]]);
14 /// a[[1, 1]] = 1;
15 /// assert_eq!(a[[0, 1]], 1);
16 /// assert_eq!(a[[1, 1]], 1);
17 /// ```
18 ///
19 /// **Note** the blanket implementation that's not visible in rustdoc:
20 /// `impl<D> NdIndex for D where D: Dimension { ... }`
21 pub fn bar() {}
22
23 /// Some line
24 ///
25 /// # prohibited
26 pub fn foo() {}
27
28 /// Some line
29 ///
30 /// 1. prohibited
31 /// 2. bar
32 pub fn baz() {}
33
34 /// Some line
35 ///
36 /// - prohibited
37 /// - bar
38 pub fn qux() {}
39
40 /// Some line
41 ///
42 /// * prohibited
43 /// * bar
44 pub fn quz() {}
45
46 /// Some line
47 ///
48 /// > prohibited
49 /// > bar
50 pub fn qur() {}
51
52 /// Some line
53 ///
54 /// prohibited
55 /// =====
56 ///
57 /// Second
58 /// ------
59 pub fn qut() {}