# Rust Compiler Fails on Useless Comments

Source: https://gofranz.com/til/rust-compiler-fails-useless-comments/

Today I learned, that rust compiler will fail, if your comments are useless.

```bash
error: expected item after doc comment
   --> tests/subscription_paid_to_free_downgrade_test.rs:577:1
    |
442 | /// Test edge case: Multiple paid-to-free downgrade attempts
    | ------------------------------------------------------------ other attributes here
...
577 | /// Test edge case: Paid-to-free downgrade with immediate paid upgrade
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment doesn't document anything
```