Commit 53e32b8d authored by Per Lindgren's avatar Per Lindgren

rust example test3 (trait problem)

parent d094ae55
......@@ -42,6 +42,7 @@ where
static mut C: &Call = &C1 {};
#[inline(never)]
pub fn set_c() {
unsafe {
C = &C2 { x: 1 };
......@@ -53,7 +54,7 @@ fn main() {
unsafe {
dispatch(C);
set_c();
dispatch(C);
// dispatch(C);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment