File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // #127423: ICE: assertion failed: sig.c_variadic || extra_args.is_empty()
2- // Calling a const fn with the wrong number of arguments where the function has
3- // an unresolved type should not trigger an ICE.
4- // issue: rust-lang/rust#127423
1+ //! Regression test for https://github.com/rust-lang/rust/issues/127423
52
63#![ allow( dead_code) ]
74
Original file line number Diff line number Diff line change 11error: lifetimes cannot use keyword names
2- --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8 :18
2+ --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5 :18
33 |
44LL | const fn add(a: &'self isize) -> usize {
55 | ^^^^^
66
77error[E0261]: use of undeclared lifetime name `'self`
8- --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8 :18
8+ --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5 :18
99 |
1010LL | const fn add(a: &'self isize) -> usize {
1111 | ^^^^^ undeclared lifetime
@@ -16,13 +16,13 @@ LL | const fn add<'self>(a: &'self isize) -> usize {
1616 | +++++++
1717
1818error[E0425]: cannot find value `Qux` in this scope
19- --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11 :5
19+ --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8 :5
2020 |
2121LL | Qux + y
2222 | ^^^ not found in this scope
2323
2424error[E0425]: cannot find value `y` in this scope
25- --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11 :11
25+ --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8 :11
2626 |
2727LL | Qux + y
2828 | ^
You can’t perform that action at this time.
0 commit comments