diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-06-29 23:13:37 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-06-30 11:50:19 +0500 |
| commit | bf5910d9bb0c5cc3e4fb1a1a9ed3d73e26793c71 (patch) | |
| tree | eeec900b449e7889d0b828c9aca5f6676c943770 /tests/ui/impl-trait/basic-trait-impl.rs | |
| parent | 4b6c3d923f9c9ec869bfc77e6c08e98f9de87ac8 (diff) | |
| download | rust-bf5910d9bb0c5cc3e4fb1a1a9ed3d73e26793c71.tar.gz rust-bf5910d9bb0c5cc3e4fb1a1a9ed3d73e26793c71.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/impl-trait/basic-trait-impl.rs')
| -rw-r--r-- | tests/ui/impl-trait/basic-trait-impl.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ui/impl-trait/basic-trait-impl.rs b/tests/ui/impl-trait/basic-trait-impl.rs index 124d604e6a8..2706c9c1798 100644 --- a/tests/ui/impl-trait/basic-trait-impl.rs +++ b/tests/ui/impl-trait/basic-trait-impl.rs @@ -1,10 +1,12 @@ +//! Test basic trait implementation syntax for both simple and generic types. + //@ run-pass use std::fmt; struct Thingy { x: isize, - y: isize + y: isize, } impl fmt::Debug for Thingy { @@ -14,10 +16,10 @@ impl fmt::Debug for Thingy { } struct PolymorphicThingy<T> { - x: T + x: T, } -impl<T:fmt::Debug> fmt::Debug for PolymorphicThingy<T> { +impl<T: fmt::Debug> fmt::Debug for PolymorphicThingy<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:?}", self.x) } |
