18 lines
306 B
Rust
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() {}
|