rust/tests/ui/issues/issue-53300.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
204 B
Rust
Raw Normal View History

// issue 53300
pub trait A {
fn add(&self, b: i32) -> i32;
}
fn addition() -> Wrapper<impl A> {}
//~^ ERROR cannot find type `Wrapper` in this scope [E0412]
fn main() {
let res = addition();
}