Prompt
What happens when a variable goes out of scope in Rust if its type implements the Drop trait? A) The compiler generates a runtime panic if references remain. B) Its memory is moved into the global garbage collector queue. C) The drop method is automatically invoked to release resources. D) The variable is marked as undefined without deallocation. Reply with the letter of the correct option (A, B, C, or D).
Expected output
C
| model | score | output |
|---|---|---|
| qwen/qwen3.7-max | 100% | C |
| kwaipilot/kat-coder-pro-v2.5 | 100% | C |
| gpt-5.5-pro | 100% | C |