Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Update error message to pass compile-fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jan 26, 2020
1 parent b25b619 commit f31ec87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/compile-fail/exception-soundness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ fn SysTick() {
#[exception]
fn SVCall() {
// If this was allowed it would lead to a data race as `SVCall` could preempt `SysTick`
SysTick(); //~ ERROR cannot find function `SysTick` in this scope
SysTick(); //~ ERROR cannot find function, tuple struct or tuple variant `SysTick` in this scope [E0425]
}
2 changes: 1 addition & 1 deletion tests/compile-fail/interrupt-soundness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ fn USART1() {

#[interrupt]
fn USART2() {
USART1(); //~ ERROR cannot find function `USART1` in this scope
USART1(); //~ ERROR cannot find function, tuple struct or tuple variant `USART1` in this scope [E0425]
}

0 comments on commit f31ec87

Please sign in to comment.