Skip to content
Snippets Groups Projects
Commit 53e32b8d authored by Per Lindgren's avatar Per Lindgren
Browse files

rust example test3 (trait problem)

parent d094ae55
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment