diff options
Diffstat (limited to 'tests/ui/lint/must_not_suspend/tuple-mismatch.rs')
-rw-r--r-- | tests/ui/lint/must_not_suspend/tuple-mismatch.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lint/must_not_suspend/tuple-mismatch.rs b/tests/ui/lint/must_not_suspend/tuple-mismatch.rs new file mode 100644 index 000000000..c7e14e425 --- /dev/null +++ b/tests/ui/lint/must_not_suspend/tuple-mismatch.rs @@ -0,0 +1,9 @@ +#![feature(generators)] + +fn main() { + let _generator = || { + yield ((), ((), ())); + yield ((), ()); + //~^ ERROR mismatched types + }; +} |