]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/issue-83499-input-output-iteration-ice.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[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