rust/tests/pretty/delegation-impl-reuse.rs
2025-12-23 10:34:23 +03:00

18 lines
306 B
Rust

//@ pretty-compare-only
//@ pretty-mode:expanded
//@ pp-exact:delegation-impl-reuse.pp
#![allow(incomplete_features)]
#![feature(fn_delegation)]
trait Trait<T> {
fn foo(&self) {}
fn bar(&self) {}
fn baz(&self) {}
}
struct S;
reuse impl Trait<{ struct S; 0 }> for S { self.0 }
fn main() {}