]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/variadic-ffi-nested-syntactic-fail.stderr
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / variadic-ffi-nested-syntactic-fail.stderr
1 error[E0743]: C-variadic type `...` may not be nested inside another type
2   --> $DIR/variadic-ffi-nested-syntactic-fail.rs:1:25
3    |
4 LL | fn f1<'a>(x: u8, y: &'a ...) {}
5    |                         ^^^
6
7 error[E0743]: C-variadic type `...` may not be nested inside another type
8   --> $DIR/variadic-ffi-nested-syntactic-fail.rs:4:29
9    |
10 LL | fn f2<'a>(x: u8, y: Vec<&'a ...>) {}
11    |                             ^^^
12
13 error[E0308]: mismatched types
14   --> $DIR/variadic-ffi-nested-syntactic-fail.rs:8:33
15    |
16 LL |     let _recovery_witness: () = 0;
17    |                            --   ^ expected `()`, found integer
18    |                            |
19    |                            expected due to this
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0308, E0743.
24 For more information about an error, try `rustc --explain E0308`.