mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
20 lines
282 B
Rust
20 lines
282 B
Rust
//@ check-pass
|
|
|
|
#![feature(lint_reasons)]
|
|
#![allow(incomplete_features)]
|
|
|
|
pub struct Wrapper<T>(T);
|
|
|
|
pub trait Foo {
|
|
fn bar() -> Wrapper<impl Sized>;
|
|
}
|
|
|
|
impl Foo for () {
|
|
#[expect(refining_impl_trait)]
|
|
fn bar() -> Wrapper<i32> {
|
|
Wrapper(0)
|
|
}
|
|
}
|
|
|
|
fn main() {}
|