rust/tests/ui/underscore-method-after-integer.rs

12 lines
133 B
Rust
Raw Normal View History

// run-pass
2017-05-12 13:00:06 +00:00
trait Tr : Sized {
fn _method_on_numbers(self) {}
}
impl Tr for i32 {}
fn main() {
42._method_on_numbers();
}