Fix legacy symbol mangling of closures

This commit is contained in:
Michael Goulet
2025-01-14 16:32:17 +00:00
parent 2ae9916816
commit faafa5c310
2 changed files with 10 additions and 4 deletions
@@ -10,3 +10,9 @@ pub async fn async_fn() {}
pub fn closure() {
let _ = || {};
}
//~ MONO_ITEM fn A::{constant#0}::{closure#0} @@
trait A where
[(); (|| {}, 1).1]: Sized,
{
}