mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
284 B
Rust
18 lines
284 B
Rust
// issue: 113903
|
|
|
|
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() {}
|