blob: cea60e6f4f25402463ea53359198cc98d7e231a7 [file] [log] [blame] [edit]
//@ run-pass
// Test that the self param space is not used in a conflicting
// manner by unboxed closures within a default method on a trait
//@ pretty-expanded FIXME #23616
trait Tr {
fn foo(&self);
fn bar(&self) {
(|| { self.foo() })()
}
}
impl Tr for () {
fn foo(&self) {}
}
fn main() {
().bar();
}