]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/issue-83499-input-output-iteration-ice.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / mir / issue-83499-input-output-iteration-ice.rs
1 // Test that when in MIR the amount of local_decls and amount of normalized_input_tys don't match
2 // that an out-of-bounds access does not occur.
3 #![feature(c_variadic)]
4
5 fn main() {}
6
7 fn foo(_: Bar, ...) -> impl {}
8 //~^ ERROR only foreign or `unsafe extern "C"` functions may be C-variadic
9 //~| ERROR cannot find type `Bar` in this scope
10 //~| ERROR at least one trait must be specified