diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-24 09:54:46 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-21 13:11:54 +0000 |
| commit | a8c9784336591adce8d39a49a1da8fdf700b2410 (patch) | |
| tree | 29009b95680c3f6f9c1a5593dfb66b84dfecc992 | |
| parent | 90b6744af7a5c3944ef7d534b315467386e38673 (diff) | |
| download | rust-a8c9784336591adce8d39a49a1da8fdf700b2410.tar.gz rust-a8c9784336591adce8d39a49a1da8fdf700b2410.zip | |
Add regression test
| -rw-r--r-- | src/test/ui/type-alias-impl-trait/implied_bounds3.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds3.rs b/src/test/ui/type-alias-impl-trait/implied_bounds3.rs new file mode 100644 index 00000000000..e39c613281d --- /dev/null +++ b/src/test/ui/type-alias-impl-trait/implied_bounds3.rs @@ -0,0 +1,18 @@ +// check-pass + +fn foo<F>(_: F) +where + F: 'static, +{ +} + +fn from<F: Send>(f: F) -> impl Send { + f +} + +fn bar<T>() { + foo(from(|| ())) +} + +fn main() { +} |
