diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-03 17:35:56 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-04 14:15:06 +1000 |
| commit | c6fb703c05a47a7f20c59c5315fe704c536084d0 (patch) | |
| tree | 08d610a0b2d7fb99c745ae61f36d3cb685b62094 /tests/rustdoc-js/gat.rs | |
| parent | 98d65d62c511777d6372ae0115d40f82d0a42857 (diff) | |
| download | rust-c6fb703c05a47a7f20c59c5315fe704c536084d0.tar.gz rust-c6fb703c05a47a7f20c59c5315fe704c536084d0.zip | |
rustfmt `tests/rustdoc-js/`.
Diffstat (limited to 'tests/rustdoc-js/gat.rs')
| -rw-r--r-- | tests/rustdoc-js/gat.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/rustdoc-js/gat.rs b/tests/rustdoc-js/gat.rs index b4861cc683f..7a2b5551114 100644 --- a/tests/rustdoc-js/gat.rs +++ b/tests/rustdoc-js/gat.rs @@ -2,7 +2,15 @@ pub trait Foo { type Assoc<T>; } -pub fn sample<X: Foo<Assoc<u8> = u8>>(_: X) -> u32 { loop {} } -pub fn synergy(_: impl Foo<Assoc<u8> = u8>) -> ! { loop {} } -pub fn consider(_: impl Foo<Assoc<u8> = u32>) -> bool { loop {} } -pub fn integrate<T>(_: impl Foo<Assoc<T> = T>) -> T { loop {} } +pub fn sample<X: Foo<Assoc<u8> = u8>>(_: X) -> u32 { + loop {} +} +pub fn synergy(_: impl Foo<Assoc<u8> = u8>) -> ! { + loop {} +} +pub fn consider(_: impl Foo<Assoc<u8> = u32>) -> bool { + loop {} +} +pub fn integrate<T>(_: impl Foo<Assoc<T> = T>) -> T { + loop {} +} |
