2023-07-27 17:32:53 -05:00
|
|
|
// issue: 113903
|
|
|
|
|
2023-09-13 11:04:42 -05:00
|
|
|
#![feature(lint_reasons)]
|
2023-07-27 17:32:53 -05:00
|
|
|
|
|
|
|
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 () {
|
2023-09-06 19:45:12 -05:00
|
|
|
#[expect(refining_impl_trait)]
|
2023-07-27 17:32:53 -05:00
|
|
|
fn w() -> &'static () {
|
|
|
|
&()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|