diff options
Diffstat (limited to 'tests/cfail/tasks-wrong-task.rs')
| -rw-r--r-- | tests/cfail/tasks-wrong-task.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cfail/tasks-wrong-task.rs b/tests/cfail/tasks-wrong-task.rs index 15bd776..0200da2 100644 --- a/tests/cfail/tasks-wrong-task.rs +++ b/tests/cfail/tasks-wrong-task.rs @@ -2,8 +2,6 @@ #![feature(used)] -extern crate core; -extern crate cortex_m; #[macro_use] extern crate cortex_m_rtfm as rtfm; @@ -23,6 +21,10 @@ fn idle(_: P0) -> ! { // Wrong task token. Declared Exti0, got Exti1 fn j1(_task: Exti1, _prio: P1) {} +// fake device crate +extern crate core; +extern crate cortex_m; + mod device { pub mod interrupt { use cortex_m::interrupt::Nr; |
