error[E0412]: cannot find type `NonExistent` in this scope --> $DIR/impl-on-nonexisting.rs:4:16 | LL | impl Trait for NonExistent {} | ^^^^^^^^^^^ not found in this scope error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0412`.