3 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
4 // file at the top-level directory of this distribution and at
5 // http://rust-lang.org/COPYRIGHT.
7 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10 // option. This file may not be copied, modified, or distributed
11 // except according to those terms.
15 // === GDB TESTS ===================================================================================
19 // gdb-command:print arg1
20 // gdb-check:$1 = 1000
21 // gdb-command:print arg2
23 // gdb-command:continue
25 // gdb-command:print arg1
26 // gdb-check:$3 = 2000
27 // gdb-command:print *arg2
28 // gdb-check:$4 = {1, 2, 3}
29 // gdb-command:continue
32 // === LLDB TESTS ==================================================================================
36 // lldb-command:print arg1
37 // lldb-check:[...]$0 = 1000
38 // lldb-command:print arg2
39 // lldb-check:[...]$1 = 0.5
40 // lldb-command:continue
42 // lldb-command:print arg1
43 // lldb-check:[...]$2 = 2000
44 // lldb-command:print *arg2
45 // lldb-check:[...]$3 = (1, 2, 3)
46 // lldb-command:continue
53 fn generic_static_default_method<T>(arg1: int, arg2: T) -> int {
59 impl Trait for Struct {}
63 // Is this really how to use these?
64 Trait::generic_static_default_method::<Struct, float>(1000, 0.5);
65 Trait::generic_static_default_method::<Struct, &(int, int, int)>(2000, &(1, 2, 3));