]> git.proxmox.com Git - rustc.git/blob - src/test/ui/self/elision/lt-struct.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / self / elision / lt-struct.rs
1 // check-pass
2
3 #![allow(non_snake_case)]
4
5 use std::rc::Rc;
6
7 struct Struct<'a> { x: &'a u32 }
8
9 impl<'a> Struct<'a> {
10 fn take_self(self, f: &u32) -> &u32 {
11 f
12 }
13
14 fn take_Struct(self: Struct<'a>, f: &u32) -> &u32 {
15 f
16 }
17
18 fn take_Box_Struct(self: Box<Struct<'a>>, f: &u32) -> &u32 {
19 f
20 }
21
22 fn take_Box_Box_Struct(self: Box<Box<Struct<'a>>>, f: &u32) -> &u32 {
23 f
24 }
25
26 fn take_Rc_Struct(self: Rc<Struct<'a>>, f: &u32) -> &u32 {
27 f
28 }
29
30 fn take_Box_Rc_Struct(self: Box<Rc<Struct<'a>>>, f: &u32) -> &u32 {
31 f
32 }
33 }
34
35 fn main() { }