1 error[E0412]: cannot find type `B` in this scope
2 --> $DIR/issue-8767.rs:1:6
4 LL | impl B { //~ ERROR cannot find type `B` in this scope
5 | ^ not found in this scope
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0412`.