]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/explicit-self-closures.rs
forward read_c_str method from Memory to Alloc
[rust.git] / src / test / ui / self / explicit-self-closures.rs
1 // compile-pass
2 #![allow(dead_code)]
3 // Test to make sure that explicit self params work inside closures
4
5 // pretty-expanded FIXME #23616
6
7 struct Box {
8     x: usize
9 }
10
11 impl Box {
12     pub fn set_many(&mut self, xs: &[usize]) {
13         for x in xs { self.x = *x; }
14     }
15 }
16
17 pub fn main() {}