]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-self-arg-aux1.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / methods / method-self-arg-aux1.rs
1 // run-pass
2 // Test method calls with self as an argument (cross-crate)
3
4 #![feature(box_syntax)]
5
6 // aux-build:method_self_arg1.rs
7 extern crate method_self_arg1;
8 use method_self_arg1::Foo;
9
10 fn main() {
11     let x = Foo;
12     // Test external call.
13     Foo::bar(&x);
14     Foo::baz(x);
15     Foo::qux(box x);
16
17     x.foo(&x);
18
19     assert_eq!(method_self_arg1::get_count(), 2*3*3*3*5*5*5*7*7*7);
20 }