]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/tuples.rs
Rollup merge of #69599 - Centril:typeck-tweak-wording, r=davidtwco
[rust.git] / src / test / rustdoc / tuples.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.tuple0.html //pre 'pub fn tuple0(x: ())'
4 pub fn tuple0(x: ()) -> () { x }
5 // @has foo/fn.tuple1.html //pre 'pub fn tuple1(x: (i32,)) -> (i32,)'
6 pub fn tuple1(x: (i32,)) -> (i32,) { x }
7 // @has foo/fn.tuple2.html //pre 'pub fn tuple2(x: (i32, i32)) -> (i32, i32)'
8 pub fn tuple2(x: (i32, i32)) -> (i32, i32) { x }