aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/tasks-p0.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-04-21 21:24:28 -0500
committerJorge Aparicio <jorge@japaric.io>2017-04-21 21:24:28 -0500
commiteea803008390cbae307e873ce6d39e01d6367759 (patch)
treec759d6c28a01fa8fa89abd52326720c5d3b5b8d3 /tests/cfail/tasks-p0.rs
parent1c82f1b1190cb40a3502d5b74a8c98775a788850 (diff)
reword the comments in compile-fail tests
Diffstat (limited to 'tests/cfail/tasks-p0.rs')
-rw-r--r--tests/cfail/tasks-p0.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/cfail/tasks-p0.rs b/tests/cfail/tasks-p0.rs
index f1e83a3..4db3d38 100644
--- a/tests/cfail/tasks-p0.rs
+++ b/tests/cfail/tasks-p0.rs
@@ -2,15 +2,14 @@
#![feature(used)]
-extern crate core;
-extern crate cortex_m;
#[macro_use]
extern crate cortex_m_rtfm as rtfm;
use rtfm::{C16, P0, P1};
use device::interrupt::Exti0;
-/// Tasks can't have priority 0. Only idle has priority 0
+// WRONG: Tasks can't have a priority of 0.
+// Only idle and init can have a priority of 0.
tasks!(device, {
j1: (Exti0, P0),
});
@@ -23,6 +22,10 @@ fn idle(_: P0) -> ! {
fn j1(_task: Exti0, _prio: P1) {}
+// fake device crate
+extern crate core;
+extern crate cortex_m;
+
mod device {
pub mod interrupt {
use cortex_m::interrupt::Nr;