diff options
| author | bors <bors@rust-lang.org> | 2025-09-08 16:29:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-08 16:29:57 +0000 |
| commit | a78f9aa87fa828ad4a5c11f1e3b93e94d9352ad6 (patch) | |
| tree | e7709e65dd1b25727fa22d71e68b5377250464aa /tests | |
| parent | 68baa87ba6f03f8b6af2a368690161f1601e4040 (diff) | |
| parent | 65e4c547bf1f0d64c5443e2199ab2b000ef9ba6e (diff) | |
| download | rust-a78f9aa87fa828ad4a5c11f1e3b93e94d9352ad6.tar.gz rust-a78f9aa87fa828ad4a5c11f1e3b93e94d9352ad6.zip | |
Auto merge of #146333 - matthiaskrgr:rollup-ib80jyw, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - rust-lang/rust#146111 (Migrate more things in the new solver to specific `DefId`s) - rust-lang/rust#146298 (GVN: Ensure indirect is first projection in try_as_place.) - rust-lang/rust#146299 (docs(std): add error docs for path canonicalize) - rust-lang/rust#146310 (Allow static regions in `type_name`.) - rust-lang/rust#146313 (Some `rustc_middle` cleanups) - rust-lang/rust#146319 (Fix typo in default.rs) - rust-lang/rust#146320 (rustc-dev-guide subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/type/type-name-basic.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/type/type-name-basic.rs b/tests/ui/type/type-name-basic.rs index 343bcae175a..2c41cb80aea 100644 --- a/tests/ui/type/type-name-basic.rs +++ b/tests/ui/type/type-name-basic.rs @@ -107,4 +107,19 @@ pub fn main() { } let a = Wrap(&()).get(); v!(a, "type_name_basic::main::Wrap<&()>::get::Info"); + + struct Issue146249<T>(T); + impl Issue146249<Box<dyn FnOnce()>> { + pub fn bar(&self) { + let f = || {}; + v!( + f, + "type_name_basic::main::Issue146249<\ + alloc::boxed::Box<dyn core::ops::function::FnOnce()>\ + >::bar::{{closure}}" + ); + } + } + let v: Issue146249<Box<dyn FnOnce()>> = Issue146249(Box::new(|| {})); + v.bar(); } |
