Change the test comment per PR review feedback

This commit is contained in:
Jacob Adam
2026-04-01 14:38:56 +01:00
parent 253c03aa9d
commit d1f11b23ca
2 changed files with 5 additions and 8 deletions
@@ -1,7 +1,4 @@
// #127423: ICE: assertion failed: sig.c_variadic || extra_args.is_empty()
// Calling a const fn with the wrong number of arguments where the function has
// an unresolved type should not trigger an ICE.
// issue: rust-lang/rust#127423
//! Regression test for https://github.com/rust-lang/rust/issues/127423
#![allow(dead_code)]
@@ -1,11 +1,11 @@
error: lifetimes cannot use keyword names
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18
|
LL | const fn add(a: &'self isize) -> usize {
| ^^^^^
error[E0261]: use of undeclared lifetime name `'self`
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18
|
LL | const fn add(a: &'self isize) -> usize {
| ^^^^^ undeclared lifetime
@@ -16,13 +16,13 @@ LL | const fn add<'self>(a: &'self isize) -> usize {
| +++++++
error[E0425]: cannot find value `Qux` in this scope
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:5
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:5
|
LL | Qux + y
| ^^^ not found in this scope
error[E0425]: cannot find value `y` in this scope
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:11
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:11
|
LL | Qux + y
| ^