|
1 | 1 | #![crate_name = "foo"]
|
2 | 2 |
|
3 | 3 | // @has foo/fn.tuple0.html //pre 'pub fn tuple0(x: ())'
|
| 4 | +// @snapshot link_unit - '//pre[@class="rust fn"]/code' |
4 | 5 | pub fn tuple0(x: ()) -> () { x }
|
5 | 6 | // @has foo/fn.tuple1.html //pre 'pub fn tuple1(x: (i32,)) -> (i32,)'
|
| 7 | +// @snapshot link1_i32 - '//pre[@class="rust fn"]/code' |
6 | 8 | pub fn tuple1(x: (i32,)) -> (i32,) { x }
|
7 | 9 | // @has foo/fn.tuple2.html //pre 'pub fn tuple2(x: (i32, i32)) -> (i32, i32)'
|
| 10 | +// @snapshot link2_i32 - '//pre[@class="rust fn"]/code' |
8 | 11 | pub fn tuple2(x: (i32, i32)) -> (i32, i32) { x }
|
| 12 | +// @has foo/fn.tuple1_t.html //pre 'pub fn tuple1_t<T>(x: (T,)) -> (T,)' |
| 13 | +// @snapshot link1_t - '//pre[@class="rust fn"]/code' |
| 14 | +pub fn tuple1_t<T>(x: (T,)) -> (T,) { x } |
| 15 | +// @has foo/fn.tuple2_t.html //pre 'pub fn tuple2_t<T>(x: (T, T)) -> (T, T)' |
| 16 | +// @snapshot link2_t - '//pre[@class="rust fn"]/code' |
| 17 | +pub fn tuple2_t<T>(x: (T, T)) -> (T, T) { x } |
| 18 | +// @has foo/fn.tuple2_tu.html //pre 'pub fn tuple2_tu<T, U>(x: (T, U)) -> (T, U)' |
| 19 | +// @snapshot link2_tu - '//pre[@class="rust fn"]/code' |
| 20 | +pub fn tuple2_tu<T, U>(x: (T, U)) -> (T, U) { x } |
0 commit comments