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/parser | |
| parent | e9191ec57ee5bdd0961a22fd9852f361a5c97ea0 (diff) | |
| download | rust-3ad95cccf9b3af7e527869a1eb130217971b7a57.tar.gz rust-3ad95cccf9b3af7e527869a1eb130217971b7a57.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/integer-literal-method-call-underscore.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/ui/parser/integer-literal-method-call-underscore.rs b/tests/ui/parser/integer-literal-method-call-underscore.rs index d9eb21894e8..9e4abf28cba 100644 --- a/tests/ui/parser/integer-literal-method-call-underscore.rs +++ b/tests/ui/parser/integer-literal-method-call-underscore.rs @@ -1,6 +1,10 @@ +//! Checks that methods with names starting with an underscore (`_`) can be +//! successfully called directly on integer literals, confirming the correct +//! parsing of such expressions where the underscore is part of the method identifier. + //@ run-pass -trait Tr : Sized { +trait Tr: Sized { fn _method_on_numbers(self) {} } |
