From 17dfabff9c1d9dc34a07a7e4a8d18186d303a205 Mon Sep 17 00:00:00 2001 From: Eduardo Sánchez Muñoz Date: Fri, 22 Sep 2023 15:58:43 +0200 Subject: Change `start` to `#[start]` in some diagnosis They refer to a function with the `start` attribute, but not necessarily named `start`. --- tests/ui/error-codes/E0132.stderr | 4 ++-- tests/ui/error-codes/E0647.stderr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/ui/error-codes') diff --git a/tests/ui/error-codes/E0132.stderr b/tests/ui/error-codes/E0132.stderr index c21363756b3..d4ddc07b521 100644 --- a/tests/ui/error-codes/E0132.stderr +++ b/tests/ui/error-codes/E0132.stderr @@ -1,8 +1,8 @@ -error[E0132]: start function is not allowed to have type parameters +error[E0132]: `#[start]` function is not allowed to have type parameters --> $DIR/E0132.rs:4:5 | LL | fn f< T >() {} - | ^^^^^ start function cannot have type parameters + | ^^^^^ `#[start]` function cannot have type parameters error: aborting due to previous error diff --git a/tests/ui/error-codes/E0647.stderr b/tests/ui/error-codes/E0647.stderr index 08cedfaef04..9d1ab967127 100644 --- a/tests/ui/error-codes/E0647.stderr +++ b/tests/ui/error-codes/E0647.stderr @@ -1,8 +1,8 @@ -error[E0647]: start function is not allowed to have a `where` clause +error[E0647]: `#[start]` function is not allowed to have a `where` clause --> $DIR/E0647.rs:7:50 | LL | fn start(_: isize, _: *const *const u8) -> isize where (): Copy { - | ^^^^^^^^^^^^^^ start function cannot have a `where` clause + | ^^^^^^^^^^^^^^ `#[start]` function cannot have a `where` clause error: aborting due to previous error -- cgit 1.4.1-3-g733a5