Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cortex-m-rt/tests/compile-fail/non-static-resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ fn SVCall() {
static mut STAT: u8 = 0;

let _stat: &'static mut u8 = STAT;
//~^ ERROR lifetime of reference outlives lifetime of borrowed content
//~^ ERROR lifetime may not live long enough
}

#[interrupt]
fn UART0() {
static mut STAT: u8 = 0;

let _stat: &'static mut u8 = STAT;
//~^ ERROR lifetime of reference outlives lifetime of borrowed content
//~^ ERROR lifetime may not live long enough
}

#[entry]
Expand Down