]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/explicit-self-closures.rs
Update ui tests
[rust.git] / src / test / ui / self / explicit-self-closures.rs
1 // build-pass (FIXME(62277): could be check-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() {}