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

@ -1,15 +1,23 @@
#![crate_name="foo"]
#![crate_name = "foo"]
pub trait Some {}
impl Some for () {}
pub trait Other {}
impl Other for () {}
pub fn alef<T: Some>() -> T { loop {} }
pub fn alpha() -> impl Some { }
pub fn alef<T: Some>() -> T {
loop {}
}
pub fn alpha() -> impl Some {}
pub fn bet<T, U>(t: T) -> U { loop {} }
pub fn bet<T, U>(t: T) -> U {
loop {}
}
pub fn beta<T>(t: T) -> T {}
pub fn other<T: Other, U: Other>(t: T, u: U) { loop {} }
pub fn alternate<T: Other>(t: T, u: T) { loop {} }
pub fn other<T: Other, U: Other>(t: T, u: U) {
loop {}
}
pub fn alternate<T: Other>(t: T, u: T) {
loop {}
}