diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-18 08:47:17 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-20 08:46:27 +0000 |
| commit | fd9ef69adf631a96ffad2d777653ae2554909866 (patch) | |
| tree | 3d7c0761944c3ca942cecbda922e438d062dee21 /tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs | |
| parent | 7849162ace72b5793f23ad68ed985c247e3cab13 (diff) | |
| download | rust-fd9ef69adf631a96ffad2d777653ae2554909866.tar.gz rust-fd9ef69adf631a96ffad2d777653ae2554909866.zip | |
Avoid a `track_errors` by bubbling up most errors from `check_well_formed`
Diffstat (limited to 'tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs')
| -rw-r--r-- | tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs b/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs index 9eeee195e56..f1238ec240f 100644 --- a/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs +++ b/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs @@ -5,5 +5,9 @@ fn f2<'a>(x: u8, y: Vec<&'a ...>) {} //~^ ERROR C-variadic type `...` may not be nested inside another type fn main() { - let _recovery_witness: () = 0; //~ ERROR mismatched types + // While this is an error, wf-checks happen before typeck, and if any wf-checks + // encountered errors, we do not continue to typeck, even if the items are + // unrelated. + // FIXME(oli-obk): make this report a type mismatch again. + let _recovery_witness: () = 0; } |
