We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 736c82f commit 2b7bf54Copy full SHA for 2b7bf54
tests/ui/parser/integer-literal-method-call-underscore.rs
@@ -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
+
5
//@ run-pass
6
-trait Tr : Sized {
7
+trait Tr: Sized {
8
fn _method_on_numbers(self) {}
9
}
10
0 commit comments