diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-20 13:42:37 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-23 10:57:10 -0400 |
| commit | a426d6fdf020ac0ae54d8bf11924907d3a225116 (patch) | |
| tree | 11ad6119489a2442ab2d1a977309634594925506 /src/tools/rustfmt/tests/source/precise-capturing.rs | |
| parent | c3d7fb398569407350abe044e786bc7890c90397 (diff) | |
| download | rust-a426d6fdf020ac0ae54d8bf11924907d3a225116.tar.gz rust-a426d6fdf020ac0ae54d8bf11924907d3a225116.zip | |
Implement use<> formatting in rustfmt
Diffstat (limited to 'src/tools/rustfmt/tests/source/precise-capturing.rs')
| -rw-r--r-- | src/tools/rustfmt/tests/source/precise-capturing.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/precise-capturing.rs b/src/tools/rustfmt/tests/source/precise-capturing.rs new file mode 100644 index 00000000000..b61cceeffe8 --- /dev/null +++ b/src/tools/rustfmt/tests/source/precise-capturing.rs @@ -0,0 +1,9 @@ +fn hello() -> impl +use<'a> + Sized {} + +fn all_three() -> impl Sized + use<'a> + 'a; + +fn pathological() -> impl use<'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, +'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, +'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, +'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a, 'a> + Sized {} |
