| error[E0573]: expected type, found module `a` | |
| --> $DIR/impl-for-module.rs:7:12 | |
| | | |
| LL | impl A for a { | |
| | ^ not a type | |
| | | |
| note: similarly named trait `A` defined here | |
| --> $DIR/impl-for-module.rs:4:1 | |
| | | |
| LL | trait A { | |
| | ^^^^^^^ | |
| help: a trait with a similar name exists | |
| | | |
| LL - impl A for a { | |
| LL + impl A for A { | |
| | | |
| error: aborting due to 1 previous error | |
| For more information about this error, try `rustc --explain E0573`. |