Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 414 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// pretty-expanded FIXME #23616
trait Trait {
fn method(self) -> isize;
struct Wrapper<T> {
field: T
impl<'a, T> Trait for &'a Wrapper<T> where &'a T: Trait {
fn method(self) -> isize {
let r: &'a T = &self.field;
Trait::method(r); // these should both work
fn main() {}
You can’t perform that action at this time.