diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-18 17:57:22 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-25 15:42:11 +0000 |
| commit | 8cd3fa04e2e023967cf2cfe3e4170b636fd25019 (patch) | |
| tree | 42fc183b7cee5f294bde109c934bf417619062f0 /tests/ui/impl-trait/struct-field-fragment-in-name.rs | |
| parent | 2801f9aaf9b7580d9b230b532b0700709857cc88 (diff) | |
| download | rust-8cd3fa04e2e023967cf2cfe3e4170b636fd25019.tar.gz rust-8cd3fa04e2e023967cf2cfe3e4170b636fd25019.zip | |
Don't give APITs names with macro expansion placeholder fragments in it
Diffstat (limited to 'tests/ui/impl-trait/struct-field-fragment-in-name.rs')
| -rw-r--r-- | tests/ui/impl-trait/struct-field-fragment-in-name.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/struct-field-fragment-in-name.rs b/tests/ui/impl-trait/struct-field-fragment-in-name.rs new file mode 100644 index 00000000000..b98cd864ccb --- /dev/null +++ b/tests/ui/impl-trait/struct-field-fragment-in-name.rs @@ -0,0 +1,16 @@ +//@ check-pass + +trait Trait<T> {} + +fn a(_: impl Trait< + [(); { + struct D { + #[rustfmt::skip] + bar: (), + } + 0 + }], +>) { +} + +fn main() {} |
