]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | // check-pass |
2 | // edition:2018 | |
3 | ||
e1599b0c XL |
4 | #![allow(non_snake_case)] |
5 | ||
6 | use std::rc::Rc; | |
7 | ||
8 | struct Struct { } | |
9 | ||
10 | impl Struct { | |
11 | async fn take_self(self, f: &u32) -> &u32 { | |
12 | f | |
13 | } | |
14 | ||
15 | async fn take_Self(self: Self, f: &u32) -> &u32 { | |
16 | f | |
17 | } | |
18 | ||
19 | async fn take_Box_Self(self: Box<Self>, f: &u32) -> &u32 { | |
20 | f | |
21 | } | |
22 | ||
23 | async fn take_Box_Box_Self(self: Box<Box<Self>>, f: &u32) -> &u32 { | |
24 | f | |
25 | } | |
26 | ||
27 | async fn take_Rc_Self(self: Rc<Self>, f: &u32) -> &u32 { | |
28 | f | |
29 | } | |
30 | ||
31 | async fn take_Box_Rc_Self(self: Box<Rc<Self>>, f: &u32) -> &u32 { | |
32 | f | |
33 | } | |
34 | } | |
35 | ||
36 | fn main() { } |