diff options
Diffstat (limited to 'tests/cfail/resource-not-declared.rs')
| -rw-r--r-- | tests/cfail/resource-not-declared.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cfail/resource-not-declared.rs b/tests/cfail/resource-not-declared.rs new file mode 100644 index 0000000..f6d08a6 --- /dev/null +++ b/tests/cfail/resource-not-declared.rs @@ -0,0 +1,14 @@ +#![no_main] +#![no_std] + +extern crate lm3s6965; +extern crate panic_halt; +extern crate rtfm; + +use rtfm::app; + +#[app(device = lm3s6965)] +const APP: () = { + #[init(resources = [X])] //~ ERROR this resource has NOT been declared + fn init() {} +}; |
