aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/task-not-declared.rs
blob: 04309f599b2f179e17c48ff66d70f8dcdc00d00a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![no_main]
#![no_std]

extern crate lm3s6965;
extern crate panic_halt;
extern crate rtfm;

use rtfm::app;

#[app(device = lm3s6965)]
const APP: () = {
    #[init(spawn = [X])] //~ ERROR this task has NOT been declared
    fn init(_: init::Context) {}
};