diff options
Diffstat (limited to 'tests/ui/impl-trait/issues/issue-70971.rs')
-rw-r--r-- | tests/ui/impl-trait/issues/issue-70971.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issues/issue-70971.rs b/tests/ui/impl-trait/issues/issue-70971.rs new file mode 100644 index 000000000..f8ae18bac --- /dev/null +++ b/tests/ui/impl-trait/issues/issue-70971.rs @@ -0,0 +1,4 @@ +fn main() { + let x : (impl Copy,) = (true,); + //~^ `impl Trait` only allowed in function and inherent method return types +} |