This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Foobar { // 创建一个枚举类型 | |
Foo (i32, i32), | |
Bar (i32, i32), | |
} | |
let foobar = Foobar::Foo(42, 233); | |
match foobar { | |
Foobar::Foo (x, y) => // 匹配 Foo 枚举项。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile in rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800) | |
enum List<T> { // 泛型 T | |
Pair (T, Box<List<T>>), // Cons 对 | |
Nil, // 表尾符号 | |
} | |
fn main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hello | |
print "hello" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 67243FBC-6CF8-5BC1-16EE-DB786B7BFEBB | |
Sat Sep 13 16:22:38 2014 | |
panic(cpu 4 caller 0xffffff8014edc24e): Kernel trap at 0xffffff8014ea42c0, type 14=page fault, registers: | |
CR0: 0x0000000080010033, CR2: 0x0000000000000008, CR3: 0x0000000054e92036, CR4: 0x00000000001606e0 | |
RAX: 0xffffff80154d0320, RBX: 0x0000000000000023, RCX: 0x0000000000000023, RDX: 0x0000000000000000 | |
RSP: 0xffffff81f63abd00, RBP: 0xffffff81f63abd20, RSI: 0xffffff8035ad7120, RDI: 0xffffff80154d0550 | |
R8: 0xffffff80285f87b8, R9: 0xffffff8028ec6628, R10: 0x00000001c9b91240, R11: 0x000000000412f000 | |
R12: 0x0000000000000000, R13: 0xffffff804f5acb60, R14: 0x00000000000001dc, R15: 0xffffff8028ec6628 | |
RFL: 0x0000000000010286, RIP: 0xffffff8014ea42c0, CS: 0x0000000000000008, SS: 0x0000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 90791BEE-948C-26EC-11F8-82EC3059D6DA | |
Fri Sep 12 20:23:11 2014 | |
panic(cpu 4 caller 0xffffff800d0a52da): "VM_PAGE_QUEUES_REMOVE: unmarked page on Q"@/SourceCache/xnu/xnu-2422.110.17/osfmk/vm/vm_resident.c:2388 | |
Backtrace (CPU 4), Frame : Return Address | |
0xffffff81fb2d3c00 : 0xffffff800d022f79 | |
0xffffff81fb2d3c80 : 0xffffff800d0a52da | |
0xffffff81fb2d3cb0 : 0xffffff800d0902e8 | |
0xffffff81fb2d3d60 : 0xffffff800d095c33 | |
0xffffff81fb2d3d90 : 0xffffff800d08f39d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 90791BEE-948C-26EC-11F8-82EC3059D6DA | |
Sun Sep 7 22:59:54 2014 | |
panic(cpu 4 caller 0xffffff8005cdc24e): Kernel trap at 0xffffff8005ca3699, type 13=general protection, registers: | |
CR0: 0x000000008001003b, CR2: 0xffffff81cf57ae60, CR3: 0x0000000008303000, CR4: 0x00000000001606e0 | |
RAX: 0x0000000000000001, RBX: 0x00080a0a00000000, RCX: 0xffffff8027c62000, RDX: 0x0000000000000821 | |
RSP: 0xffffff81f0b9b610, RBP: 0xffffff81f0b9b640, RSI: 0x0000000020b4f3bf, RDI: 0xffffff800b80a098 | |
R8: 0x0000000000000000, R9: 0x0000000000000001, R10: 0xffffff80062d1600, R11: 0x0000000000000008 | |
R12: 0xffffff800b80a098, R13: 0xffffff80097cc000, R14: 0x0000000000753000, R15: 0xffffff802eea79c0 | |
RFL: 0x0000000000010206, RIP: 0xffffff8005ca3699, CS: 0x0000000000000008, SS: 0x0000000000000010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 79402548-70A1-2E81-53A6-B74F4598C78F | |
Sun Aug 31 16:29:04 2014 | |
panic(cpu 1 caller 0xffffff80028dc24e): Kernel trap at 0xffffff8002caad6e, type 13=general protection, registers: | |
CR0: 0x000000008001003b, CR2: 0x000000011537f000, CR3: 0x0000000004400000, CR4: 0x00000000001606e0 | |
RAX: 0x0000000000000000, RBX: 0xffffff8039c79500, RCX: 0xae1c1c1dff967c5d, RDX: 0xffffff8002f044b0 | |
RSP: 0xffffff8215683dd0, RBP: 0xffffff8215683dd0, RSI: 0xffffff80408f0b00, RDI: 0xae1c1c1dff967c7d | |
R8: 0x0000000000000001, R9: 0xffffff8002e01910, R10: 0x00000000000003ff, R11: 0xffffffffffffffff | |
R12: 0xffffff80408f0b00, R13: 0xffffff802317c000, R14: 0xffffff8039c79500, R15: 0x0000000000000000 | |
RFL: 0x0000000000010282, RIP: 0xffffff8002caad6e, CS: 0x0000000000000008, SS: 0x0000000000000010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 01D6FAAE-9E9A-87A2-4F1E-32D8C96636BC | |
Tue Aug 19 15:20:12 2014 | |
panic(cpu 0 caller 0xffffff801acdc24e): Kernel trap at 0xffffff801aca3699, type 14=page fault, registers: | |
CR0: 0x000000008001003b, CR2: 0x000000000002002a, CR3: 0x00000000283cd035, CR4: 0x00000000001606e0 | |
RAX: 0x0000000000000001, RBX: 0x0000000000020002, RCX: 0xffffff803e2b1e30, RDX: 0x0000000000000821 | |
RSP: 0xffffff8205a43ca0, RBP: 0xffffff8205a43cd0, RSI: 0x0000000020b4f3bf, RDI: 0xffffff8020810128 | |
R8: 0x0000000000000001, R9: 0x00000000cccccccd, R10: 0x00007fff886b00c2, R11: 0x0000000000000212 | |
R12: 0xffffff8020810128, R13: 0xffffff801e7d2000, R14: 0x0000000000392000, R15: 0xffffff8049e662a0 | |
RFL: 0x0000000000010202, RIP: 0xffffff801aca3699, CS: 0x0000000000000008, SS: 0x0000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 01D6FAAE-9E9A-87A2-4F1E-32D8C96636BC | |
Tue Aug 12 23:26:36 2014 | |
panic(cpu 6 caller 0xffffff80018dc24e): Kernel trap at 0xffffff8001c51901, type 13=general protection, registers: | |
CR0: 0x0000000080010033, CR2: 0x00000000a1277478, CR3: 0x000000004ebfe002, CR4: 0x00000000001606e0 | |
RAX: 0xffffff802de57c00, RBX: 0x0000000000000000, RCX: 0x0000000000000000, RDX: 0x0000000000000190 | |
RSP: 0xffffff81ec7aba10, RBP: 0xffffff81ec7aba40, RSI: 0xffffff8022650590, RDI: 0x0101010101010101 | |
R8: 0x000000000000204b, R9: 0x0000000000000002, R10: 0x000000000000003e, R11: 0xffffff81a26e303e | |
R12: 0xffffff8001f03501, R13: 0x0000000000000000, R14: 0xffffff8001f034d0, R15: 0xffffff802df68900 | |
RFL: 0x0000000000010246, RIP: 0xffffff8001c51901, CS: 0x0000000000000008, SS: 0x0000000000000010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 01D6FAAE-9E9A-87A2-4F1E-32D8C96636BC | |
Sun Aug 10 23:12:54 2014 | |
panic(cpu 0 caller 0xffffff800e6dc24e): Kernel trap at 0xffffff800e694169, type 14=page fault, registers: | |
CR0: 0x0000000080010033, CR2: 0x0000000000000030, CR3: 0x000000000ae7a011, CR4: 0x00000000001606e0 | |
RAX: 0x0000000000000000, RBX: 0x0000000000000000, RCX: 0x0000000001000000, RDX: 0x0000000000001000 | |
RSP: 0xffffff81fac1b9d0, RBP: 0xffffff81fac1ba10, RSI: 0x0000000000000000, RDI: 0xffffff803d128b60 | |
R8: 0xffffff81fac1ba68, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000206 | |
R12: 0xffffff803d128b60, R13: 0x0000000000000a2b, R14: 0x0000000000000000, R15: 0x0000000000000a2c | |
RFL: 0x0000000000010286, RIP: 0xffffff800e694169, CS: 0x0000000000000008, SS: 0x0000000000000010 |