Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 324 Bytes
// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
// Test to make sure that explicit self params work inside closures
// pretty-expanded FIXME #23616
struct Box {
x: usize
}
impl Box {
pub fn set_many(&mut self, xs: &[usize]) {
for x in xs { self.x = *x; }
}
}
pub fn main() {}
You can’t perform that action at this time.