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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
134 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();
}