diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 21:46:28 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-10 18:47:20 +0500 |
| commit | 3ad95cccf9b3af7e527869a1eb130217971b7a57 (patch) | |
| tree | 9cbd3351ca4945ebab10f7eea36eac6224473dcc /tests/ui/namespace | |
| parent | e9191ec57ee5bdd0961a22fd9852f361a5c97ea0 (diff) | |
| download | rust-3ad95cccf9b3af7e527869a1eb130217971b7a57.tar.gz rust-3ad95cccf9b3af7e527869a1eb130217971b7a57.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/namespace')
| -rw-r--r-- | tests/ui/namespace/struct-type-and-function-name-coexistence.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/ui/namespace/struct-type-and-function-name-coexistence.rs b/tests/ui/namespace/struct-type-and-function-name-coexistence.rs index 31dc684a214..8d5ab3781b5 100644 --- a/tests/ui/namespace/struct-type-and-function-name-coexistence.rs +++ b/tests/ui/namespace/struct-type-and-function-name-coexistence.rs @@ -1,7 +1,14 @@ //@ run-pass -struct A { a: isize } +struct A { + a: isize, +} -fn a(a: A) -> isize { return a.a; } +fn a(a: A) -> isize { + return a.a; +} -pub fn main() { let x: A = A {a: 1}; assert_eq!(a(x), 1); } +pub fn main() { + let x: A = A { a: 1 }; + assert_eq!(a(x), 1); +} |
