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