2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2012-08-22 15:18:29 -05:00
|
|
|
// Test to make sure that explicit self params work inside closures
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2012-08-22 15:18:29 -05:00
|
|
|
struct Box {
|
2015-03-25 19:06:52 -05:00
|
|
|
x: usize
|
2012-08-22 15:18:29 -05:00
|
|
|
}
|
|
|
|
|
2013-05-31 17:17:22 -05:00
|
|
|
impl Box {
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn set_many(&mut self, xs: &[usize]) {
|
2015-01-31 11:20:46 -06:00
|
|
|
for x in xs { self.x = *x; }
|
2012-08-22 15:18:29 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {}
|