rustfmt tests/rustdoc-js/
.
This commit is contained in:
parent
98d65d62c5
commit
c6fb703c05
28 changed files with 240 additions and 133 deletions
|
@ -3,16 +3,24 @@ pub struct Q;
|
|||
pub struct R<T>(T);
|
||||
|
||||
// Checks that tuple and unit both work
|
||||
pub fn side_effect() { }
|
||||
pub fn side_effect() {}
|
||||
|
||||
// Check a non-tuple
|
||||
pub fn not_tuple() -> P { loop {} }
|
||||
pub fn not_tuple() -> P {
|
||||
loop {}
|
||||
}
|
||||
|
||||
// Check a 1-tuple
|
||||
pub fn one() -> (P,) { loop {} }
|
||||
pub fn one() -> (P,) {
|
||||
loop {}
|
||||
}
|
||||
|
||||
// Check a 2-tuple
|
||||
pub fn two() -> (P,P) { loop {} }
|
||||
pub fn two() -> (P, P) {
|
||||
loop {}
|
||||
}
|
||||
|
||||
// Check a nested tuple
|
||||
pub fn nest() -> (Q, R<(u32,)>) { loop {} }
|
||||
pub fn nest() -> (Q, R<(u32,)>) {
|
||||
loop {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue