summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs6
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 9eeee195e..f1238ec24 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;
}