From fa29a5595da32e0164632611bd591379a3ff243e Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Fri, 3 Jan 2025 20:32:27 +0100 Subject: [PATCH] Move impl one line to make the error clearer --- .../declaration/no_prelude/name_poisoning.carbon | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon b/toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon index 87900a061e981..aaf0bcd681254 100644 --- a/toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon +++ b/toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon @@ -284,10 +284,11 @@ interface A { } class X { extend impl as A { - // CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+3]]:29: error: `impl as` can only be used in a class [ImplAsOutsideClass] - // CHECK:STDERR: fn F() { return; } impl as B {} - // CHECK:STDERR: ^~ - fn F() { return; } impl as B {} + fn F() { return; } + // CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+3]]:10: error: `impl as` can only be used in a class [ImplAsOutsideClass] + // CHECK:STDERR: impl as B {} + // CHECK:STDERR: ^~ + impl as B {} } }