Skip to content

Commit 2b7bf54

Browse files
committed
underscore-method-after-integer
1 parent 736c82f commit 2b7bf54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ui/parser/integer-literal-method-call-underscore.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
//! Checks that methods with names starting with an underscore (`_`) can be
2+
//! successfully called directly on integer literals, confirming the correct
3+
//! parsing of such expressions where the underscore is part of the method identifier.
4+
15
//@ run-pass
26

3-
trait Tr : Sized {
7+
trait Tr: Sized {
48
fn _method_on_numbers(self) {}
59
}
610

0 commit comments

Comments
 (0)