1
Fork 0

rustfmt tests/rustdoc-js/.

This commit is contained in:
Nicholas Nethercote 2024-06-03 17:35:56 +10:00
parent 98d65d62c5
commit c6fb703c05
28 changed files with 240 additions and 133 deletions

View file

@ -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 {}
}