rust/tests/ui/impl-trait/in-trait/rpitit-shadowed-by-missing-adt.rs

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

20 lines
311 B
Rust
Raw Normal View History

// issue: 113903
2023-09-13 11:04:42 -05:00
#![feature(lint_reasons)]
use std::ops::Deref;
pub trait Tr {
fn w() -> impl Deref<Target = Missing<impl Sized>>;
//~^ ERROR cannot find type `Missing` in this scope
}
impl Tr for () {
#[expect(refining_impl_trait)]
fn w() -> &'static () {
&()
}
}
fn main() {}