mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 06:45:36 +01:00
add cfail tests
This commit is contained in:
parent
e9788ff9b6
commit
1f1cf84ab4
14 changed files with 438 additions and 2 deletions
18
tests/cfail/init.rs
Normal file
18
tests/cfail/init.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#![deny(warnings)]
|
||||
#![feature(proc_macro)]
|
||||
|
||||
extern crate cortex_m_rtfm as rtfm;
|
||||
extern crate stm32f103xx;
|
||||
|
||||
use rtfm::app;
|
||||
|
||||
app! { //~ error mismatched types
|
||||
device: stm32f103xx,
|
||||
}
|
||||
|
||||
// ERROR `init` must have signature `fn (init::Peripherals)`
|
||||
fn init() {}
|
||||
|
||||
fn idle() -> ! {
|
||||
loop {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue