error[E0412]: cannot find type `Bar` in this scope --> $DIR/issue-36836.rs:13:17 | LL | impl Foo for Bar {} | ^^^ not found in this scope error: aborting due to previous error For more information about this error, try `rustc --explain E0412`.