Skip to content

Commit 27434e0

Browse files
committed
Fix break in compilefail tests on 1.58
1 parent 657af97 commit 27434e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cortex-m-rt/tests/compile-fail/non-static-resource.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ enum interrupt {
2020
fn SVCall() {
2121
static mut STAT: u8 = 0;
2222

23-
let _stat: &'static mut u8 = STAT; //~ ERROR explicit lifetime required in the type of `STAT`
23+
let _stat: &'static mut u8 = STAT;
24+
//~^ ERROR lifetime of reference outlives lifetime of borrowed content
2425
}
2526

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

30-
let _stat: &'static mut u8 = STAT; //~ ERROR explicit lifetime required in the type of `STAT`
31+
let _stat: &'static mut u8 = STAT;
32+
//~^ ERROR lifetime of reference outlives lifetime of borrowed content
3133
}
3234

3335
#[entry]

0 commit comments

Comments
 (0)