Why do LLMs stubbornly insist {:p} doesn't display metadata for slices?

⚓ Rust    📅 2025-11-22    👤 surdeus    👁️ 10      

surdeus

I have the code fn main() { println!("{:p}", "hi"); } . It produced the output Pointer { addr: 0xad0415aa148, metadata: 2 } . But LLMs, such as Gemini 3 or ChatGPT 5.1, stubbornly insist that metadata won't be displayed even when we are dealing with fat pointers. Gemini 3, in particular, keeps insisting this remains true even in the world of the latest compiler versions, such as rustc 1.91.x, 1.89, etc. How can I prove to various LLMs that nowadays, metadata is indeed displayed when we are dealing with fat pointers in the code that I just showed you?

6 posts - 5 participants

Read full topic

🏷️ Rust_feed