blob: 0117f634c85e9b622381a0ab263bf6f1c30b621c [file] [log] [blame]
//! Regression test for issue <https://github.com/rust-lang/rust/issues/53300>
//! Tests that an undefined type (Wrapper) used with impl Trait correctly gives E0412.
pub trait A {
fn add(&self, b: i32) -> i32;
}
fn addition() -> Wrapper<impl A> {}
//~^ ERROR cannot find type `Wrapper` in this scope [E0425]
fn main() {
let res = addition();
}