diff --git a/cortex-m-rt/tests/compile-fail/exception-v8only.rs b/cortex-m-rt/tests/compile-fail/exception-v8only.rs index d54f7060..2366090b 100644 --- a/cortex-m-rt/tests/compile-fail/exception-v8only.rs +++ b/cortex-m-rt/tests/compile-fail/exception-v8only.rs @@ -13,4 +13,4 @@ fn foo() -> ! { #[exception] fn SecureFault() {} -//~^ ERROR no variant or associated item named `SecureFault` +//~^ ERROR no variant, associated function, or constant named `SecureFault` found for enum `cortex_m_rt::Exception` in the current scope diff --git a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs index f2ec7181..3c98f664 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs @@ -19,4 +19,4 @@ enum interrupt { // NOTE this looks a bit better when using a device crate: // "no variant named `foo` found for type `stm32f30x::Interrupt` in the current scope" #[interrupt] -fn foo() {} //~ ERROR no variant or associated item named `foo` found for enum `interrupt` in the current scope [E0599] +fn foo() {} //~ ERROR no variant, associated function, or constant named `foo` found for enum `interrupt` in the current scope [E0599]